Documentation
¶
Overview ¶
package data provides wrappers for response data, optionally including response headers such as ETag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data interface {
// Content returns the data as a value that can be processed by encoders such as "encoding/json"
Content(template, language string) (interface{}, error)
// Headers returns response headers relating to the data (optional)
Headers() map[string]string
}
Click to show internal directories.
Click to hide internal directories.