Documentation
¶
Index ¶
- func Decode(bts []byte, ptr interface{}) error
- func DecodeReader(r io.Reader, ptr interface{}) error
- func Encode(v interface{}) ([]byte, error)
- func Pretty(v interface{}) (string, error)
- func ReadFile(filePath string, v interface{}) error
- func StripComments(src string) string
- func WriteFile(filePath string, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeReader ¶ added in v0.4.3
DecodeReader decode JSON from io reader.
func StripComments ¶ added in v0.1.3
StripComments strip comments for a JSON string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.