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 Decoder func NewDecoder(buf []byte) Decoder func (d Decoder) Decode(val interface{}) error type Encoder func NewEncoder(val interface{}) (Encoder, error) func (e Encoder) Encode() ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Decoder ¶ added in v1.6.9 type Decoder map[protowire.Number]interface{} func NewDecoder ¶ added in v1.6.9 func NewDecoder(buf []byte) Decoder func (Decoder) Decode ¶ added in v1.7.0 func (d Decoder) Decode(val interface{}) error type Encoder ¶ added in v1.6.9 type Encoder map[string]interface{} func NewEncoder ¶ added in v1.6.9 func NewEncoder(val interface{}) (Encoder, error) func (Encoder) Encode ¶ added in v1.7.0 func (e Encoder) Encode() ([]byte, error) Source Files ¶ View all Source files decode.goencode.go Click to show internal directories. Click to hide internal directories.