Registry / web-framework / dimfeld-httptreemux

dimfeld-httptreemux

JSON →
library5.0.1+incompatiblegogounverified

High-performance, flexible HTTP router built on a patricia tree.

go get github.com/dimfeld/httptreemux
INSTALL
IMPORT
SIG · DIMFELD-HTTPTREEMU
D
dimfeld-httptreemux
web-frameworkgov5.0.1+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httptreemux
✓ github.com/dimfeld/httptreemux

Create a router with a path parameter.

package main import ( "net/http" "github.com/dimfeld/httptreemux" ) func main() { router := httptreemux.New() router.GET("/hello/:name", func(w http.ResponseWriter, r *http.Request, params map[string]string) { w.Write([]byte("Hello " + params["name"])) }) http.ListenAndServe(":8080", router) }
Debug
Known issues
breakingVersion 5.x uses a different API than earlier versions; the handler signature changed to include a params map.
fix
Update handler signatures to accept (http.ResponseWriter, *http.Request, map[string]string).
affects: >=5.0.0
Upgrade
Version history
5.0.1+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Resources
dimfeld-httptreemux — go get dimfeld-httptreemux · libregistry