Documentation ¶
Overview ¶
Package common Note: inspiration for this from https://gist.github.com/cespare/3985516
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
CheckError 0 = info 1 = warning 2 = error - should be most common 3 = fatal
Types ¶
type ErrorHandler ¶
type ErrorHandler func(http.ResponseWriter, *http.Request) error
func (ErrorHandler) ServeHTTP ¶
func (fn ErrorHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.