package
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Mar 17, 2019
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Decode(json []byte, v interface{}) error
Decode decode json bytes to data. use it instead of json.Unmarshal
Encode encode data to json bytes. use it instead of json.Marshal
Pretty get pretty JSON string
ReadFile Read JSON file data
StripComments strip comments for a JSON string
func WriteFile(filePath string, data interface{}) error
WriteFile write data to JSON file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.