code: func DefaultEncode(value interface{}) ([]byte, error) {
  	var buff bytes.Buffer
  
  	en := gob.NewEncoder(&buff)
  
  	err := en.Encode(value)
  	if err != nil {
  		return nil, err
  	}
  
  	return buff.Bytes(), nil
  }
docs: // DefaultEncode is the default encoding func for bolthold (Gob)