Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Marshal 封装了 gojson/json 包的 Marshal 函数。 Marshal = json.Marshal // Unmarshal 封装了 gojson/json 包的 Unmarshal 函数。 Unmarshal = json.Unmarshal // MarshalIndent 封装了 gojson/json 包的 MarshalIndent 函数。 MarshalIndent = json.MarshalIndent // NewDecoder 是一个函数,返回一个新的自定义 Decoder 实例。 NewDecoder = func(r io.Reader) *Decoder { return &Decoder{decoder: json.NewDecoder(r)} } // NewEncoder 是一个函数,返回一个新的自定义 Encoder 实例。 NewEncoder = func(w io.Writer) *Encoder { return &Encoder{encoder: json.NewEncoder(w)} } )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.