Documentation ¶
Index ¶
- Variables
- func Created(w http.ResponseWriter, r *http.Request, id string, v interface{})
- func Decode(r *http.Request, v interface{}) error
- func Err(w http.ResponseWriter, r *http.Request, err error)
- func FileServer(r chi.Router, path string, root http.FileSystem)
- func Param(r *http.Request, name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Validate *validator.Validate
Validate validator
Functions ¶
func Created ¶
func Created(w http.ResponseWriter, r *http.Request, id string, v interface{})
Created object created
func FileServer ¶
func FileServer(r chi.Router, path string, root http.FileSystem)
FileServer conveniently sets up a http.FileServer handler to serve static files from a http.FileSystem.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.