Registry / web-framework / go-zoo-bone

go-zoo-bone

JSON →
library1.3.0gogounverified

Package bone is a lightweight and fast HTTP router for Go.

go get github.com/go-zoo/bone
INSTALL
IMPORT
SIG · GO-ZOO-BONE
G
go-zoo-bone
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.

bone
github.com/go-zoo/bone

Minimal example showing how to create a router with a parameterized route.

package main import ( "net/http" "github.com/go-zoo/bone" ) func main() { mux := bone.New() mux.GetFunc("/hello/:name", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello " + bone.GetValue(r, "name"))) }) http.ListenAndServe(":8080", mux) }
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
4 hits · last 30 days
node
4
Resources
go-zoo-bone — go get go-zoo-bone · libregistry