json

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const JSONTagName = "json"

JSONTagName is the name of the `"json"` tag.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
}

Decoder is a decoder that knows how to work with text encoded in JSON

func (*Decoder) Decode

func (d *Decoder) Decode(r io.Reader, t *dials.Type) (reflect.Value, error)

Decode is a decoder that decodes the JSON from an io.Reader into the appropriate struct.

Jump to

Keyboard shortcuts

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