Documentation
¶
Index ¶
- Constants
- type Message
- func (m Message) Add(num float64, val Message) error
- func (m Message) Get(num float64) Message
- func (m Message) GetBytes(num float64) []byte
- func (m Message) GetFixed64(num float64) uint64
- func (m Message) GetMessages(num float64) []Message
- func (m Message) GetString(num float64) string
- func (m Message) GetVarint(num float64) uint64
- func (m Message) Marshal() []byte
- type Tag
Constants ¶
const ( MessageType = 0 BytesType = 0.1 VarintType = 0.2 Fixed64Type = 0.3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message map[Tag]interface{}
func (Message) Add ¶ added in v1.17.8
Add value using MessageType, given number and empty Name. To add value with a Name, use the map directly.
func (Message) Get ¶
Return value using MessageType, given number and empty Name. To return value with a Name, use the map directly.
func (Message) GetBytes ¶
Return value using BytesType, given number and empty Name. To return value with a Name, use the map directly.
func (Message) GetFixed64 ¶ added in v1.20.5
Return value using Fixed64Type, given number and empty Name. To return value with a Name, use the map directly.
func (Message) GetMessages ¶
Return value using MessageType, given number and empty Name. To return value with a Name, use the map directly.
func (Message) GetString ¶
Return value using BytesType, given number and empty Name. To return value with a Name, use the map directly.