chifs

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 4 Imported by: 0

README

chifs

Standalone http.FileServer helper for chi.Router.

Features

  • No additional dependencies (just chi)
  • chi.Router.NotFoundHandler fallback support

License

shroud is open source software released under the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileServer

func FileServer(r *chi.Mux, pattern, path string)

FileServer conveniently sets up a http.FileServer r to serve static files from a http.FileSystem. @see https://github.com/go-chi/chi/issues/155 @see https://github.com/go-chi/chi/issues/184

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL