main
v4.0.2+incompatible
github.com/drish/chi/_examples/fileserver
Documentation
pkg.go.dev ↗Functions
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.