Registry / web-framework / urfave-negroni

urfave-negroni

JSON →
library1.0.0gogounverified

An idiomatic approach to web middleware in Go, encouraging use of net/http Handlers.

go get github.com/urfave/negroni
INSTALL
IMPORT
SIG · URFAVE-NEGRONI
U
urfave-negroni
web-frameworkgov1.0.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.

negroni
✓ github.com/urfave/negroni

Create a classic Negroni server with default middleware.

package main import ( "fmt" "net/http" "github.com/urfave/negroni" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello World") }) n := negroni.Classic() n.UseHandler(mux) n.Run(":3000") }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
urfave-negroni — go get urfave-negroni · libregistry