Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CSVContentType = []string{"application/csv"}
)
CSVContentType
View Source
var (
HTMLContentType = []string{"text/html"}
)
HTMLContentType
Functions ¶
Types ¶
type CSV ¶
CSV str.
func (CSV) Render ¶
func (j CSV) Render(w http.ResponseWriter) (err error)
Render (JSON) writes data with json ContentType.
func (CSV) WriteContentType ¶
func (j CSV) WriteContentType(w http.ResponseWriter)
WriteContentType fn
type HTML ¶
HTML str.
func (HTML) Render ¶
func (j HTML) Render(w http.ResponseWriter) (err error)
Render (JSON) writes data with json ContentType.
func (HTML) WriteContentType ¶
func (j HTML) WriteContentType(w http.ResponseWriter)
WriteContentType fn
type Render ¶
type Render interface { Render(http.ResponseWriter) error WriteContentType(w http.ResponseWriter) }
Render http reponse render.
Click to show internal directories.
Click to hide internal directories.