Documentation ¶
Index ¶
- func DisallowUnknownFields() utils.OptionFunc[unmarshalOption]
- func JsonEscapeHTML(on bool) utils.OptionFunc[marshalOption]
- func JsonIndent(prefix, indent string) utils.OptionFunc[marshalOption]
- func JsonNumber() utils.OptionFunc[unmarshalOption]
- func MarshalFunc(algo Algorithm, opts ...utils.OptionExtender) func(src any) ([]byte, error)
- func MarshalStreamFunc(algo Algorithm, opts ...utils.OptionExtender) func(dst io.Writer, src any) error
- func MsgpackUseCompactFloats(on bool) utils.OptionFunc[marshalOption]
- func MsgpackUseCompactInts(on bool) utils.OptionFunc[marshalOption]
- func UnmarshalFunc[T any](algo Algorithm, opts ...utils.OptionExtender) func(src []byte) (T, error)
- func UnmarshalFuncByType(algo Algorithm, dst any, opts ...utils.OptionExtender) func([]byte) (any, error)
- func UnmarshalStreamFunc[T any](algo Algorithm, opts ...utils.OptionExtender) func(io.Reader) (T, error)
- func UnmarshalStreamFuncByType(algo Algorithm, dst any, opts ...utils.OptionExtender) func(io.Reader) (any, error)
- type Algorithm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisallowUnknownFields ¶
func DisallowUnknownFields() utils.OptionFunc[unmarshalOption]
func JsonEscapeHTML ¶
func JsonEscapeHTML(on bool) utils.OptionFunc[marshalOption]
func JsonIndent ¶
func JsonIndent(prefix, indent string) utils.OptionFunc[marshalOption]
func JsonNumber ¶
func JsonNumber() utils.OptionFunc[unmarshalOption]
func MarshalFunc ¶
func MarshalStreamFunc ¶
func MsgpackUseCompactFloats ¶
func MsgpackUseCompactFloats(on bool) utils.OptionFunc[marshalOption]
func MsgpackUseCompactInts ¶
func MsgpackUseCompactInts(on bool) utils.OptionFunc[marshalOption]
func UnmarshalFunc ¶
func UnmarshalFuncByType ¶
func UnmarshalStreamFunc ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.