jsonp

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2020 License: BSD-3-Clause Imports: 2 Imported by: 3

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

func MarshalToFile(v interface{}, filename string) error

MarshalToFile encodes a data into a JSON file.

func UnmarshalFile

func UnmarshalFile(filename string, v interface{}) error

UnmarshalFile decodes a JSON from a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL