json

package module
v0.0.0-...-648a86e Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewDecoder = json.NewDecoder
	Unmarshal  = json.Unmarshal

	NewEncoder    = json.NewEncoder
	Marshal       = json.Marshal
	MarshalIndent = json.MarshalIndent

	Compact    = json.Compact
	HTMLEscape = json.HTMLEscape
	Valid      = json.Valid
)

Functions

This section is empty.

Types

type Body

type Body = func() (contentType string, body io.Reader, err error)

func Encode

func Encode(in any) Body

Encode 提交JSON

type DecodeOption

type DecodeOption = json.DecodeOption

type DecodeOptionFunc

type DecodeOptionFunc = json.DecodeOptionFunc

type Decoder

type Decoder = json.Decoder

type Delim

type Delim = json.Delim

type EncodeOption

type EncodeOption = json.EncodeOption

type EncodeOptionFunc

type EncodeOptionFunc = json.EncodeOptionFunc

type Encoder

type Encoder = json.Encoder

type Number

type Number = json.Number

type Process

type Process = func(resp *http.Response) error // 响应处理器

func Decode

func Decode(out any) Process

Decode 处理JSON响应

type RawMessage

type RawMessage = json.RawMessage

type Token

type Token = json.Token

Jump to

Keyboard shortcuts

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