Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedType = errors.New("unsupported type")
Functions ¶
func Register ¶ added in v0.0.3
func Register[T any]()
Register records a type name mapping used for interface serialization. Types serialized behind interface fields must be registered before decode.
func RegisterType ¶ added in v0.0.13
Types ¶
type Decoder ¶
type Decoder[T any] struct { // contains filtered or unexported fields }
Decoder is used to deserialize values of type T from a binary format, it deserializes exported AND unexported fields of the type T.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.