Registry / web-framework / julienschmidt-httprouter

julienschmidt-httprouter

JSON →
library1.3.0gogounverified

Package httprouter is a trie based high performance HTTP request router.

go get github.com/julienschmidt/httprouter
INSTALL
IMPORT
SIG · JULIENSCHMIDT-HTTP
J
julienschmidt-httprouter
web-frameworkgov1.3.0
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.

httprouter
github.com/julienschmidt/httprouter

Sets up a simple HTTP server with a parameterized route.

package main import ( "fmt" "net/http" "github.com/julienschmidt/httprouter" ) func main() { router := httprouter.New() router.GET("/hello/:name", func(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { fmt.Fprintf(w, "Hello, %s!", ps.ByName("name")) }) http.ListenAndServe(":8080", router) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
julienschmidt-httprouter — go get julienschmidt-httprouter · libregistry