Documentation
¶
Index ¶
- func DecodeAny(r io.Reader) (any, error)
- func DecodeBytes(r io.Reader) ([]byte, error)
- func DecodeString(r io.Reader) (string, error)
- func Encode(value any) ([]byte, error)
- func EncodeBytes(b []byte) []byte
- func EncodeString(s string) []byte
- func RegisterMessage(s Struct)
- type Numeric
- type PrimitiveType
- type Struct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeBytes ¶
func EncodeString ¶
func RegisterMessage ¶
func RegisterMessage(s Struct)
Types ¶
type PrimitiveType ¶
type PrimitiveType byte
const ( TypeVoid PrimitiveType = 0b0000 TypeScalar PrimitiveType = 0b0001 TypeBoolean PrimitiveType = 0b0010 TypeFloat PrimitiveType = 0b0011 TypeString PrimitiveType = 0b0100 TypeBytes PrimitiveType = 0b0101 TypeArray PrimitiveType = 0b0110 TypeMap PrimitiveType = 0b0111 TypeStruct PrimitiveType = 0b1000 )
func (PrimitiveType) String ¶
func (i PrimitiveType) String() string
Click to show internal directories.
Click to hide internal directories.