package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: May 22, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Marshal returns the JSON encoding of v
func MarshalIndent(v interface{}) ([]byte, error)
MarshalIndent is like Marshal but applies Indent to format the output
func ReadFile(filename string, result interface{}) error
ReadFile reads json from file and unmarshal into result
func Unmarshal(data []byte, v interface{}) error
Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v.
func WriteFile(filename string, data interface{}) error
WriteFile marshals data and writes to file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.