Documentation ¶ Index ¶ func NotFound(rw http.ResponseWriter, r *http.Request) type Error func NewError(message string, code int) Error func (e Error) Error() string type Handler func (fn Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NotFound ¶ func NotFound(rw http.ResponseWriter, r *http.Request) Types ¶ type Error ¶ type Error struct { Message string Code int } func NewError ¶ func NewError(message string, code int) Error func (Error) Error ¶ func (e Error) Error() string type Handler ¶ type Handler func(http.ResponseWriter, *http.Request) error func (Handler) ServeHTTP ¶ func (fn Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.