Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NoTemplateSpecified is returned when an output that wants to be encoded // doesn't specify a template NoTemplateSpecified = errors.New("output without method that selects template") )
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
type Decoder interface {
Decode(v interface{}) error
}
Decoder deserializes a value from the request body
type Decoding ¶
Decoding describes deocding that accepts a certain content type
func NewForm ¶
func NewForm(uvd URLValuesDecoder) Decoding
NewForm initializes a decoder that parses form request bodies
type Encoder ¶
type Encoder interface {
Encode(v interface{}) error
}
Encoder serializes a value into the response body
type Encoding ¶
type Encoding interface { Produces() string Encoder(w http.ResponseWriter) Encoder }
Encoding describes encoding that procoduces a certain content type
type URLValuesDecoder ¶
URLValuesDecoder can be implemented to automate the decoding of url.Values
Click to show internal directories.
Click to hide internal directories.