router

package
v0.0.0-...-d73a121 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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