diff options
Diffstat (limited to 'handlers.go')
-rw-r--r-- | handlers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/handlers.go b/handlers.go index c32fdbd..39151cd 100644 --- a/handlers.go +++ b/handlers.go @@ -8,6 +8,10 @@ import ( "net/http" ) +var ( + NotFoundHandler = http.HandlerFunc(NotFound) +) + // NotFound is an HTTP NotFound handler that returns an informative message. func NotFound(w http.ResponseWriter, r *http.Request) { msg := fmt.Sprintf("not found: %v %v %v", r.Method, r.URL, r.Form) |