Documentation ¶
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func MarshalIndentToString(v interface{}, prefix, indent string) (string, error)
- func MarshalToString(v interface{}) (string, error)
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalFromString(str string, v interface{}) error
- type API
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalIndent ¶ added in v2.1.22
func MarshalIndentToString ¶ added in v2.1.22
MarshalIndentToString
@param indent 为了兼容性,用 " " 替代 "\t".
func MarshalToString ¶
func UnmarshalFromString ¶
Types ¶
type API ¶ added in v2.1.22
Click to show internal directories.
Click to hide internal directories.