Documentation
¶
Overview ¶
Package encode provides encoders for input of a runner.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GobEncoder ¶ added in v0.20.10
type GobEncoder struct{}
GobEncoder is a Encoder that encodes a struct into a gob.
func (GobEncoder) ContentType ¶ added in v0.20.10
func (g GobEncoder) ContentType() string
ContentType returns the content type of the encoder.
type JSONEncoder ¶ added in v0.20.10
type JSONEncoder struct{}
JSONEncoder is a Encoder that encodes a struct into a json.
func (JSONEncoder) ContentType ¶ added in v0.20.10
func (j JSONEncoder) ContentType() string
ContentType returns the content type of the encoder.
type XMLEncoder ¶ added in v0.20.10
type XMLEncoder struct{}
XMLEncoder is a Encoder that encodes a struct into a gob.
func (XMLEncoder) ContentType ¶ added in v0.20.10
func (g XMLEncoder) ContentType() string
ContentType returns the content type of the encoder.
Click to show internal directories.
Click to hide internal directories.