Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func Marshal(v interface{}) ([]byte, error) func MarshalReader(v interface{}) (io.Reader, error) func NewDecoder(r io.Reader) sonic.Decoder func NewEncoder(w io.Writer) sonic.Encoder func Unmarshal(data []byte, v any) error type Number Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Marshal ¶ func Marshal(v interface{}) ([]byte, error) func MarshalReader ¶ added in v1.9.0 func MarshalReader(v interface{}) (io.Reader, error) func NewDecoder ¶ func NewDecoder(r io.Reader) sonic.Decoder func NewEncoder ¶ func NewEncoder(w io.Writer) sonic.Encoder func Unmarshal ¶ func Unmarshal(data []byte, v any) error Types ¶ type Number ¶ type Number = json.Number Source Files ¶ View all Source files decode_amd64.go encode_amd64.go type.go Directories ¶ Show internal Expand all Path Synopsis gjson iterator pretty sjson sonic Click to show internal directories. Click to hide internal directories.