Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTML ¶
func (*HTML) WriteContentType ¶
func (h *HTML) WriteContentType(w http.ResponseWriter)
type HTMLRender ¶
type JSON ¶
type JSON struct {
Data any
}
func (*JSON) WriteContentType ¶
func (j *JSON) WriteContentType(w http.ResponseWriter)
type Redirect ¶
func (*Redirect) WriteContentType ¶
func (r *Redirect) WriteContentType(w http.ResponseWriter)
type Render ¶
type Render interface { Render(w http.ResponseWriter) error WriteContentType(w http.ResponseWriter) }
type String ¶
func (*String) WriteContentType ¶
func (s *String) WriteContentType(w http.ResponseWriter)
type XML ¶
type XML struct {
Data any
}
func (*XML) WriteContentType ¶
func (x *XML) WriteContentType(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.