Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, obj interface{}) error
func WriteString ¶
func WriteString(w http.ResponseWriter, format string, data []interface{})
Types ¶
type HTMLDebug ¶
type HTMLProduction ¶
func (HTMLProduction) Instance ¶
func (r HTMLProduction) Instance(name string, data interface{}) Render
type IndentedJSON ¶
type IndentedJSON struct {
Data interface{}
}
func (IndentedJSON) Render ¶
func (r IndentedJSON) Render(w http.ResponseWriter) error
type JSON ¶
type JSON struct {
Data interface{}
}
func (JSON) Render ¶
func (r JSON) Render(w http.ResponseWriter) error
type Render ¶
type Render interface {
Render(http.ResponseWriter) error
}
type String ¶
type String struct {
Format string
Data []interface{}
}
func (String) Render ¶
func (r String) Render(w http.ResponseWriter) error
Source Files
¶
- data.go
- html.go
- json.go
- redirect.go
- render.go
- text.go
- xml.go
- yaml.go
Click to show internal directories.
Click to hide internal directories.