Documentation ¶
Index ¶
- func ResponseHTMLTemplate(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error
- func ResponseHTMLTemplateRaw(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error
- func ResponseXMLTemplate(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error
- func WriteTemplate(tpl *template.Template, w io.Writer, content interface{}, mediatype string) error
- func WriteTemplateRaw(tpl *template.Template, w io.Writer, content interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseHTMLTemplate ¶
func ResponseHTMLTemplate(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error
ResponseHTMLTemplate write template name from given template into writer for provided content with HTML minification
func ResponseHTMLTemplateRaw ¶ added in v4.17.0
func ResponseHTMLTemplateRaw(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error
ResponseHTMLTemplateRaw write template name from given template into writer for provided content
func ResponseXMLTemplate ¶
func ResponseXMLTemplate(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error
ResponseXMLTemplate write template name from given template into writer for provided content with XML minification
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.