json

package
v1.37.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Unmarshal = json.Unmarshal

Functions

func Decode

func Decode(body io.ReadCloser, dst interface{}) error

func DecodeBuffer

func DecodeBuffer(buf *bytes.Buffer, dst interface{}) error

func DecodeBytes

func DecodeBytes(data []byte, dst interface{}) error

func Encode

func Encode(value interface{}) string

func EncodeBuffer

func EncodeBuffer(value interface{}) *bytes.Buffer

func EncodeBytes

func EncodeBytes(value interface{}) []byte

func EncodeIndentBytes

func EncodeIndentBytes(value interface{}, prefix, indent string) []byte

func EncodeRaw

func EncodeRaw(value interface{}) json.RawMessage

func Iterator

func Iterator(filename string) <-chan Record

Types

type Record

type Record struct {
	Data  string
	Index int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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