//
pkg.gl
Category
github.com/basharal/common
route
package
0.10.3
Repository:
https://github.com/basharal/common.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
0
Files
82 SLOC
#
Functions
FileServe
FileServe returns a new http.HandlerFunc that serves files from dir.
New
New returns a new Router.
Param
Param returns param p for the context, or the empty string when param does not exist in context.
WithParam
WithParam returns a new context with param p set to v.
#
Structs
Router
Router wraps httprouter.Router and adds support for prefixed sub-routers, per-request context injections and instrumentation.