webserver

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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