Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
// DefaultManager is the default instance of the manager, initialized with default values.
DefaultManager *manager = initializerManager()
)
Functions ¶
This section is empty.
Types ¶
type BsonHandler ¶
type BsonHandler struct{}
func (*BsonHandler) Marshall ¶
func (*BsonHandler) Marshall(element any, to io.Writer) error
Marshall serializes the given element and writes it to the provided writer.
func (*BsonHandler) Unmarshall ¶
func (*BsonHandler) Unmarshall(element any, from io.ReadSeeker) error
Unmarshall deserializes data from the provided reader into the given element.
type CborHandler ¶
type CborHandler struct{}
func (*CborHandler) Marshall ¶
func (*CborHandler) Marshall(element any, to io.Writer) error
Marshall serializes the given element and writes it to the provided writer.
func (*CborHandler) Unmarshall ¶
func (*CborHandler) Unmarshall(element any, from io.ReadSeeker) error
Unmarshall deserializes data from the provided reader into the given element.
type JsonHandler ¶
type JsonHandler struct{}
JsonHandler is the marshaller and unmarshaller for json using jsoniter
func (*JsonHandler) Marshall ¶
func (*JsonHandler) Marshall(element any, to io.Writer) error
Marshall serializes the given element and writes it to the provided writer.
func (*JsonHandler) Unmarshall ¶
func (*JsonHandler) Unmarshall(element any, from io.ReadSeeker) error
Unmarshall deserializes data from the provided reader into the given element.
type Marshaller ¶
type Marshaller interface { // Marshall serializes the given element and writes it to the provided writer. Marshall(element any, to io.Writer) error }
Marshaller defines the interface for marshalling data into a writer.
type PlistHandler ¶
type PlistHandler struct{}
func (*PlistHandler) Marshall ¶
func (*PlistHandler) Marshall(element any, to io.Writer) error
Marshall serializes the given element and writes it to the provided writer.
func (*PlistHandler) Unmarshall ¶
func (*PlistHandler) Unmarshall(element any, from io.ReadSeeker) error
Unmarshall deserializes data from the provided reader into the given element.
type TomlHandler ¶
type TomlHandler struct{}
func (*TomlHandler) Marshall ¶
func (*TomlHandler) Marshall(element any, to io.Writer) error
Marshall serializes the given element and writes it to the provided writer.
func (*TomlHandler) Unmarshall ¶
func (*TomlHandler) Unmarshall(element any, from io.ReadSeeker) error
Unmarshall deserializes data from the provided reader into the given element.
type Unmarshaller ¶
type Unmarshaller interface { // Unmarshall deserializes data from the provided reader into the given element. Unmarshall(element any, from io.ReadSeeker) error }
Unmarshaller defines the interface for unmarshalling data from a reader.
type XmlHandler ¶
type XmlHandler struct{}
func (*XmlHandler) Marshall ¶
func (*XmlHandler) Marshall(element any, to io.Writer) error
Marshall serializes the given element and writes it to the provided writer.
func (*XmlHandler) Unmarshall ¶
func (*XmlHandler) Unmarshall(element any, from io.ReadSeeker) error
Unmarshall deserializes data from the provided reader into the given element.
type YamlHandler ¶
type YamlHandler struct{}
func (*YamlHandler) Marshall ¶
func (*YamlHandler) Marshall(element any, to io.Writer) error
Marshall serializes the given element and writes it to the provided writer.
func (*YamlHandler) Unmarshall ¶
func (*YamlHandler) Unmarshall(element any, from io.ReadSeeker) error
Unmarshall deserializes data from the provided reader into the given element.