json

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(data interface{}) string

Encode Parses map to JSON string<解析map转json字符串>

Types

type New

type New struct {
	Child interface{} //json next level.
}

New Json parameter structure.

func Decode

func Decode(data string) *New

Decode Parse array.<解析json字符串>

func (*New) Array

func (get *New) Array() []interface{}

Array Data type conversion.

func (*New) Float64

func (get *New) Float64() float64

Float64 Data type conversion.

func (*New) Get

func (get *New) Get(name interface{}) *New

Get the next level of array or json.<获取json的节点>

func (*New) Int

func (get *New) Int() int

Int Data type conversion.

func (*New) Int64

func (get *New) Int64() int64

Int64 Data type conversion.

func (*New) Map

func (get *New) Map() map[string]interface{}

Map Data type conversion.

func (*New) String

func (get *New) String() string

String Data type conversion.

Jump to

Keyboard shortcuts

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