title: Best way to store data in BoltDB
body: <p>I am new to BoltDB and Golang, and trying to get your help.</p>
  
  <p>So, I understand that I can only save byte array ([]byte) for key and value of BoltDB. If I have a struct of user as below, and key will be the username, what would be the best choice to store the data into BoltDB where it expects array of bytes? </p>
  
  <p>Serializing it or JSON? Or better way?</p>
  
  <pre><code>type User struct {
      name string
      age  int
      location string
      password string
      address string 
  }
  </code></pre>
  
  <p>Thank you so much, have a good evening</p>