Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileServerWith404 ¶
func FileServerWith404(root http.FileSystem, handler404 FSHandler404) http.Handler
func Start ¶
func Start(publicDir http.FileSystem)
Types ¶
type FSHandler404 ¶
type FSHandler404 = func(w http.ResponseWriter, r *http.Request) (doDefaultFileServe bool)
From https://gist.github.com/lummie/91cd1c18b2e32fa9f316862221a6fd5c FSHandler404 provides the function signature for passing to the FileServerWith404
Click to show internal directories.
Click to hide internal directories.