Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
Deserialize wraps encoding/json Decoder to fulfill type32.DeserializeTypeID32Funcn
Types ¶
type Deserializer ¶
type Deserializer struct{}
Deserializer fulfill serial.Deserializer.
func (Deserializer) Deserialize ¶
func (Deserializer) Deserialize(v any, data []byte) error
Deserialize the JSON data into v. This fulfills fulfill serial.Deserializer.
type Serializer ¶
type Serializer struct {
Prefix, Indent string
}
Serializer holds options for serializing json.
func NewSerializer ¶
func NewSerializer(prefix, indent string) Serializer
NewSerializer with options
func (Serializer) Save ¶
func (s Serializer) Save(v any, path string) error
Save writes the JSON value of v to the file at the path location.
Click to show internal directories.
Click to hide internal directories.