Documentation ¶
Index ¶
- Constants
- func Bool(v bool) proto.Option[bool]
- func Float32(v float32) proto.Option[float32]
- func Float64(v float64) proto.Option[float64]
- func Int32(v int32) proto.Option[int32]
- func Int64(v int64) proto.Option[int64]
- func Marshal(m Message) ([]byte, error)
- func None[T any]() proto.Option[T]
- func Some[T any](val T) proto.Option[T]
- func String(v string) proto.Option[string]
- func Uint32(v uint32) proto.Option[uint32]
- func Uint64(v uint64) proto.Option[uint64]
- func Unmarshal(b []byte, m Message) error
- type DynamicMessage
- type Message
- type SInt
- type SInt32
- type SInt64
- type TypeValue
Constants ¶
View Source
const ( WireVarint = 0 WireFixed64 = 1 WireBytes = 2 WireStartGroup = 3 WireEndGroup = 4 WireFixed32 = 5 WireSFixed32 = 5 | (1 << 3) WireSFixed64 = 1 | (1 << 3) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DynamicMessage ¶
func (DynamicMessage) Encode ¶
func (msg DynamicMessage) Encode() []byte
Click to show internal directories.
Click to hide internal directories.