gojson

package
v0.0.0-...-f41bb3c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONGetBoolean

func JSONGetBoolean(data []byte, keys ...string) (bool, error)

func JSONGetFloat

func JSONGetFloat(data []byte, keys ...string) (float64, error)

func JSONGetInt

func JSONGetInt(data []byte, keys ...string) (int64, error)

func JSONGetString

func JSONGetString(data []byte, keys ...string) (string, error)

func JSONMustGetBoolean

func JSONMustGetBoolean(data []byte, keys ...string) bool

func JSONMustGetFloat

func JSONMustGetFloat(data []byte, keys ...string) float64

func JSONMustGetInt

func JSONMustGetInt(data []byte, keys ...string) int64

func JSONMustGetString

func JSONMustGetString(data []byte, keys ...string) string

func Marshal

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

func MarshalIndent

func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)

func Unmarshal

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

Types

type JSON

type JSON interface {
	JSONMarshal() interface{}
	JSONUnmarshal() interface{}
}

Jump to

Keyboard shortcuts

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