README ¶ Protobuf https://github.com/golang/protobuf/issues/1370 https://github.com/protocolbuffers/protobuf-go/blob/master/testing/protopack/pack.go https://stackoverflow.com/questions/26744873/converting-map-to-struct https://stackoverflow.com/questions/41348512/protobuf-unmarshal-unknown Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Fields func NewFields(buf []byte) Fields func (f Fields) Struct(val interface{}) error type Records func NewRecords(val interface{}) (Records, error) func (r Records) Bytes() ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Fields ¶ added in v1.6.3 type Fields map[protowire.Number]interface{} func NewFields ¶ added in v1.8.8 func NewFields(buf []byte) Fields Convert byte slice to map func (Fields) Struct ¶ added in v1.8.8 func (f Fields) Struct(val interface{}) error Convert map to struct type Records ¶ added in v1.8.8 type Records map[string]interface{} func NewRecords ¶ added in v1.8.8 func NewRecords(val interface{}) (Records, error) Convert struct to map func (Records) Bytes ¶ added in v1.8.8 func (r Records) Bytes() ([]byte, error) Convert map to byte slice Source Files ¶ View all Source files field.gorecord.go Click to show internal directories. Click to hide internal directories.