json

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(json []byte, v interface{}) error

JsonEncode decode json bytes to data. use it instead of json.Unmarshal

func Encode

func Encode(v interface{}) ([]byte, error)

JsonEncode encode data to json bytes. use it instead of json.Marshal

func Pretty

func Pretty(v interface{}) (string, error)

Pretty get pretty JSON string

func ReadFile

func ReadFile(filePath string, v interface{}) error

ReadFile

func WriteFile

func WriteFile(filePath string, data interface{}) error

WriteFile

Types

This section is empty.

Jump to

Keyboard shortcuts

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