Documentation ¶ Index ¶ func Marshal(v interface{}) ([]byte, error) func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) func NewDecoder(r io.Reader) *jsoniter.Decoder func NewEncoder(w io.Writer) *jsoniter.Encoder func RegisterTimeFormat(format string) func Unmarshal(data []byte, v interface{}) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Marshal ¶ func Marshal(v interface{}) ([]byte, error) func MarshalIndent ¶ func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) func NewDecoder ¶ func NewDecoder(r io.Reader) *jsoniter.Decoder func NewEncoder ¶ func NewEncoder(w io.Writer) *jsoniter.Encoder func RegisterTimeFormat ¶ func RegisterTimeFormat(format string) RegisterTimeFormat 支持自定义时间格式类型,用来反序列化时间 func Unmarshal ¶ func Unmarshal(data []byte, v interface{}) error Types ¶ This section is empty. Source Files ¶ View all Source files json.go Click to show internal directories. Click to hide internal directories.