Documentation ¶
Index ¶
- func CutJsonDataWithFields(jsonData *string, fields []string) *string
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func MarshalToString(v interface{}) (string, error)
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalArray(items []string, result interface{}) error
- func UnmarshalFromString(str string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CutJsonDataWithFields ¶
CutJsonDataWithFields 剪切 jsonData 并只返回要定位的“字段”。 jsonData 不能为 nil,必须是 json 字符串
func MarshalIndent ¶
func MarshalToString ¶
func UnmarshalArray ¶
func UnmarshalFromString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.