Registry / web-framework / containous-mux

containous-mux

JSON →
library0.0.0-20220627093034-b2dd784e613fgogounverified

An HTTP request router and dispatcher with support for path variables, host matching, and subrouters.

go get github.com/containous/mux
INSTALL
IMPORT
SIG · CONTAINOUS-MUX
C
containous-mux
web-frameworkgov0.0.0-20220627093034-b2dd784e613f
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/containous/mux

Creates a router with a path variable and starts an HTTP server.

package main import ( "net/http" "github.com/containous/mux" ) func main() { r := mux.NewRouter() r.HandleFunc("/hello/{name}", func(w http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) w.Write([]byte("Hello " + vars["name"])) }) http.ListenAndServe(":8080", r) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220627093034-b2dd784e613flatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
containous-mux — go get containous-mux · libregistry