Versions in this module Expand all Collapse all v0 v0.0.4 Jul 2, 2025 Changes in this version + const EngineGoJson + const EngineJsoniter + const EngineSonic + const EngineStandard + func Marshal(v interface{}) ([]byte, error) + func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + func SetEngine(marshal, unmarshal Engine) + func SetEngineFromEnv() + func SetMarshalEngine(engine Engine) + func SetUnmarshalEngine(engine Engine) + func Unmarshal(data []byte, v interface{}) error + type Decoder interface + Decode func(v interface{}) error + func NewDecoder(r io.Reader) Decoder + type Encoder interface + Encode func(v interface{}) error + func NewEncoder(w io.Writer) Encoder + type Engine interface + Marshal func(v interface{}) ([]byte, error) + MarshalIndent func(v interface{}, prefix, indent string) ([]byte, error) + NewDecoder func(r io.Reader) Decoder + NewEncoder func(w io.Writer) Encoder + Unmarshal func(data []byte, v interface{}) error + func GetEngineByName(name string) Engine + func NewGoJsonEngine() Engine + func NewJsoniterEngine() Engine + func NewSonicEngine() Engine + func NewStdEngine() Engine