Documentation
¶
Index ¶
- func DeepCopy(src, dest interface{}) error
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func Merge(dst, src interface{}) error
- func PrettyPrint(v interface{}) (string, error)
- func Query(data []byte, query string) (interface{}, error)
- func Unmarshal(data []byte, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopy ¶
func DeepCopy(src, dest interface{}) error
DeepCopy performs a deep copy of a JSON-compatible Go value.
func MarshalIndent ¶
MarshalIndent marshals a Go value to a pretty-printed JSON byte slice.
func Merge ¶
func Merge(dst, src interface{}) error
Merge merges two JSON-compatible Go values. The values must be maps or structs.
func PrettyPrint ¶
PrettyPrint prints a pretty-printed JSON string of a Go value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.