json

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: GPL-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exports = map[string]interface{}{
	"_name":         "encoding/json",
	"decoder":       json.NewDecoder,
	"encoder":       json.NewEncoder,
	"marshal":       json.Marshal,
	"marshalIndent": json.MarshalIndent,
	"pretty":        Pretty,
	"unmarshal":     Unmarshal,
	"compact":       json.Compact,
	"indent":        json.Indent,
	"htmlEscape":    json.HTMLEscape,

	"NewDecoder":    json.NewDecoder,
	"NewEncoder":    json.NewEncoder,
	"Marshal":       json.Marshal,
	"MarshalIndent": json.MarshalIndent,
	"Pretty":        Pretty,
	"Unmarshal":     Unmarshal,
	"Compact":       json.Compact,
	"Indent":        json.Indent,
	"HTMLEscape":    json.HTMLEscape,
}

Exports is the export table of this module.

Functions

func Pretty

func Pretty(v interface{}) string

Pretty prints a value in pretty mode.

func Unmarshal

func Unmarshal(b interface{}) (v interface{}, err error)

Unmarshal unmarshals a []byte or string

Types

This section is empty.

Jump to

Keyboard shortcuts

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