Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileRouter ¶
func FileRouter(directory, routePath string) func(w http.ResponseWriter, r *http.Request)
FileRouter is the route handler for routing files|assets.
usage: mux.HandleFunc("/assets/", router.FileRouter("./static/assets", "/assets/"))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.