Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(logger *zap.SugaredLogger, templates *template.Template) *Encoder
func (*Encoder) EncodeComponent ¶
func (*Encoder) EncodeError ¶
func (e *Encoder) EncodeError(w http.ResponseWriter, errToEncode error)
func (*Encoder) EncodeHTML ¶
type HtmlEncoder ¶
type HtmlEncoder interface { EncodeHTML(w http.ResponseWriter, r *http.Request, status int, contents string) EncodeComponent(w http.ResponseWriter, r *http.Request, status int, component Component) EncodeError(w http.ResponseWriter, err error) }
Click to show internal directories.
Click to hide internal directories.