Documentation ¶
Index ¶
- func CheckValueType(v any) error
- func NormalizeValue(value any) (any, reflect.Type)
- func PrepareMarshalValue(v any) (reflect.Value, proto.Message, error)
- func PrepareUnmarshalDest(v any) (reflect.Value, proto.Message, error)
- func Unmarshal(c Codec, data []byte, valueType reflect.Type) (any, error)
- type Codec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckValueType ¶
func NormalizeValue ¶
Internally values are always pointers to a non-pointer type.
func PrepareMarshalValue ¶
Validate the input value for marshalling.
func PrepareUnmarshalDest ¶
Validate the output destination for unmarshalling. It must be a non-nil pointer.
Types ¶
Click to show internal directories.
Click to hide internal directories.