Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalIgnoreError ¶
func MarshalIgnoreError(v interface{}) []byte
MarshalIgnoreError call json.Marshal and ignores the error. Use this function when you are sure the error will not happen.
func MarshalToFile ¶
MarshalToFile encodes a data into a JSON file.
func UnmarshalFile ¶
UnmarshalFile decodes a JSON from a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.