Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundHandler = func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) Respond(w, Message(http.StatusNotFound, "Resource was not found")) next.ServeHTTP(w, r) }) }
Functions ¶
func Respond ¶
func Respond(w http.ResponseWriter, data map[string]interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.