Documentation ¶
Overview ¶
Package html provides a high level builder interface for html responses
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(w http.ResponseWriter, r *http.Request, err error)
Error will write the error to the client with a json content type.
Types ¶
type ErrorResponse ¶
type ErrorResponse interface {
HTML() []byte
}
ErrorResponse is an error that contains an HTML representation.
Click to show internal directories.
Click to hide internal directories.