README ¶ Protobuf https://github.com/golang/protobuf/issues/1370 https://github.com/philpearl/plenc/issues/3 https://github.com/protocolbuffers/protobuf-go/blob/master/testing/protopack/pack.go https://github.com/segmentio/encoding/issues/103 https://stackoverflow.com/questions/26744873/converting-map-to-struct https://stackoverflow.com/questions/41348512/protobuf-unmarshal-unknown done: map[string]interface{} to protobuf []byte done: protobuf []byte to map[protowire.Number]interface{} to do: protobuf []byte to map[string]interface{} Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Decode(dec Decoder, val interface{}) error func Encode(enc Encoder) ([]byte, error) type Decoder func NewDecoder(buf []byte) Decoder type Encoder func NewEncoder(val interface{}) (Encoder, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ added in v1.6.9 func Decode(dec Decoder, val interface{}) error func Encode ¶ added in v1.6.9 func Encode(enc Encoder) ([]byte, error) 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 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) Source Files ¶ View all Source files decode.goencode.go Click to show internal directories. Click to hide internal directories.