Registry / web-framework / go-pkgz-rest

go-pkgz-rest

JSON →
library1.21.0gogounverified

Package rest provides common middlewares and helpers for rest services.

go get github.com/go-pkgz/rest
INSTALL
IMPORT
SIG · GO-PKGZ-REST
G
go-pkgz-rest
web-frameworkgov1.21.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.

rest
github.com/go-pkgz/rest

Wraps a handler with default REST middleware.

package main import ( "net/http" "github.com/go-pkgz/rest" ) func main() { handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello")) }) http.ListenAndServe(":8080", rest.Wrap(handler)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
go-pkgz-rest — go get go-pkgz-rest · libregistry