Discover Packages
github.com/phR0ze/n
pkg
enc
json
package
Version:
v1.3.1
Opens a new window with list of versions in this module.
Published: Aug 12, 2024
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package json provides helper functions for working with json
Marshal wraps the json.Marshal
ReadJSON reads the target file and returns a map[string]interface{} data
structure representing the json read in.
func Unmarshal(y []byte , o interface{}) error
Unmarshal wraps the json.Unmarshal
func WriteJSON(filepath string , obj interface{}, indent ...int ) (err error )
WriteJSON converts the given obj interface{} into json then writes to disk
with default permissions. Expects obj to be a structure that encoding/json understands
Source Files
¶
Click to show internal directories.
Click to hide internal directories.