json

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const DataTypeJSON = "application/json"

DataTypeJSON contains JSON codec data type.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON struct{}

JSON codec.

func (*JSON) Decoder

func (j *JSON) Decoder(r io.Reader) codec.Decoder

Decoder creates JSON decoder.

func (*JSON) Encoder

func (j *JSON) Encoder(w io.Writer) codec.Encoder

Encoder creates JSON encoder.

func (*JSON) MimeType

func (j *JSON) MimeType() string

MimeType returns the mime type of this codec (which is application/json).

Jump to

Keyboard shortcuts

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