Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer interface { // Serialize serialize the data to byte array Serialize(v any) ([]byte, error) // Deserialize deserialize the byte array to destination value Deserialize(data []byte, v any) error }
Serializer the serializer for data
var DefaultSerializer Serializer = &jsonSerializer{}
DefaultSerializer the default Serializer implementation
Click to show internal directories.
Click to hide internal directories.