Registry / web-framework / gorilla-mux

gorilla-mux

JSON →
library1.8.1gogounverified

Implements a request router and dispatcher for HTTP.

go get github.com/gorilla/mux
INSTALL
IMPORT
SIG · GORILLA-MUX
G
gorilla-mux
web-frameworkgov1.8.1
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.

mux
github.com/gorilla/mux

Creates a simple HTTP server with a route.

package main import ( "fmt" "net/http" "github.com/gorilla/mux" ) func main() { r := mux.NewRouter() r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, world!") }) http.ListenAndServe(":8080", r) }
Debug
Known issues
breakingGorilla Mux is in maintenance mode; consider using the standard library's http.ServeMux (Go 1.22+) or chi.
fix
For new projects, use net/http's built-in router or chi.
affects: >=1.0.0
Upgrade
Version history
1.8.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
gorilla-mux — go get gorilla-mux · libregistry