Documentation
¶
Index ¶
- type Message
- func (m Message) Add(num Number, name string, val Message) error
- func (m Message) Get(num Number, name string) Message
- func (m Message) GetBytes(num Number, name string) []byte
- func (m Message) GetFixed64(num Number, name string) uint64
- func (m Message) GetMessages(num Number, name string) []Message
- func (m Message) GetString(num Number, name string) string
- func (m Message) GetVarint(num Number, name string) uint64
- func (m Message) GoString() string
- func (m Message) Marshal() []byte
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message map[Number]interface{}
We cannot include the name in the key. When you Unmarshal, the name will be empty. If you then try to Get with a name, it will fail. Max valid number is 536,870,911, so better to use float64: stackoverflow.com/questions/3793838
func (Message) GetFixed64 ¶ added in v1.20.5
Click to show internal directories.
Click to hide internal directories.