Registry / web-framework / gorilla-pat

gorilla-pat

JSON →
library1.0.2gogounverified

A request router and dispatcher with a pat-like interface, built on top of gorilla/mux.

go get github.com/gorilla/pat
INSTALL
IMPORT
SIG · GORILLA-PAT
G
gorilla-pat
web-frameworkgov1.0.2
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.

pat
github.com/gorilla/pat

Registers a route with a path variable and starts an HTTP server.

package main import ( "fmt" "net/http" "github.com/gorilla/pat" ) func main() { r := pat.New() r.Get("/hello/{name}", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, %s!", r.URL.Query().Get(":name")) }) http.ListenAndServe(":8080", r) }
Debug
Known issues
gotchaRoutes match path prefixes; register most specific paths first.
fix
Order routes from most to least specific.
affects: all
Upgrade
Version history
1.0.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
gorilla-pat — go get gorilla-pat · libregistry