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 ¶
type GobEncoder struct{}
GobEncoder is a Encoder that encodes a struct into a gob.
func (GobEncoder) ContentType ¶
func (g GobEncoder) ContentType() string
ContentType returns the content type of the encoder.
type JSONEncoder ¶
type JSONEncoder struct{}
JSONEncoder is a Encoder that encodes a struct into a json.
func (JSONEncoder) ContentType ¶
func (j JSONEncoder) ContentType() string
ContentType returns the content type of the encoder.
type XMLEncoder ¶
type XMLEncoder struct{}
XMLEncoder is a Encoder that encodes a struct into a gob.
func (XMLEncoder) ContentType ¶
func (g XMLEncoder) ContentType() string
ContentType returns the content type of the encoder.
Click to show internal directories.
Click to hide internal directories.