Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
func (Blob) WriteContentType ¶
func (r Blob) WriteContentType(w http.ResponseWriter)
type HTML ¶
func (HTML) WriteContentType ¶
func (r HTML) WriteContentType(w http.ResponseWriter)
type HTMLEngine ¶
type HTMLRender ¶
func NewGlobHTMLRender ¶
func NewGlobHTMLRender(funcMap template.FuncMap, glob string) HTMLRender
func NewHTMLRender ¶
func NewHTMLRender(funcMap template.FuncMap, files ...string) HTMLRender
type IndentedJSON ¶
type IndentedJSON struct {
Data any
}
func (IndentedJSON) Render ¶
func (r IndentedJSON) Render(w http.ResponseWriter) error
func (IndentedJSON) WriteContentType ¶
func (r IndentedJSON) WriteContentType(w http.ResponseWriter)
type JSON ¶
type JSON struct {
Data any
}
func (JSON) WriteContentType ¶
func (r JSON) WriteContentType(w http.ResponseWriter)
type Redirect ¶
func (Redirect) WriteContentType ¶
func (r Redirect) WriteContentType(http.ResponseWriter)
type Render ¶
type Render interface { Render(w http.ResponseWriter) error WriteContentType(w http.ResponseWriter) }
type SSEvent ¶
func (SSEvent) WriteContentType ¶
func (r SSEvent) WriteContentType(w http.ResponseWriter)
type String ¶
func (String) WriteContentType ¶
func (r String) WriteContentType(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.