json

package
v2.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

Decode Decode json

func DecodeReader

func DecodeReader(r io.Reader, v interface{}) error

DecodeReader Decode json reader

func DecodeReader2

func DecodeReader2(r io.Reader, v interface{}) error

DecodeReader2 Decode json reader(use pipe)

func DecodeString

func DecodeString(s string, v interface{}) error

DecodeString Decode json string

func Encode

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

Encode Encode json

func EncodeReader

func EncodeReader(v interface{}) io.Reader

EncodeReader Encode json to reader

func EncodeString

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

EncodeString Encode json to string

func EncodeWriter

func EncodeWriter(w io.Writer, v interface{}) error

EncodeWriter Encode json to writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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