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 NumberMap func NewNumberMap(buf []byte) NumberMap func (n NumberMap) Struct(val interface{}) error type StringMap func NewStringMap(val interface{}) (StringMap, error) func (s StringMap) Bytes() ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type NumberMap ¶ added in v1.8.0 type NumberMap map[protowire.Number]interface{} func NewNumberMap ¶ added in v1.8.0 func NewNumberMap(buf []byte) NumberMap Convert byte slice to map func (NumberMap) Struct ¶ added in v1.8.0 func (n NumberMap) Struct(val interface{}) error Convert map to struct type StringMap ¶ added in v1.8.0 type StringMap map[string]interface{} func NewStringMap ¶ added in v1.8.0 func NewStringMap(val interface{}) (StringMap, error) Convert struct to map func (StringMap) Bytes ¶ added in v1.8.0 func (s StringMap) Bytes() ([]byte, error) Convert map to byte slice Source Files ¶ View all Source files number.gostring.go Click to show internal directories. Click to hide internal directories.