Registry / web-framework / emicklei-go-restful-v3

emicklei-go-restful-v3

JSON →
library3.13.0gogounverified

A lean package for creating REST-style WebServices without magic in Go.

go get github.com/emicklei/go-restful/v3
INSTALL
IMPORT
SIG · EMICKLEI-GO-RESTFU
E
emicklei-go-restful-v3
web-frameworkgov3.13.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.

restful
github.com/emicklei/go-restful/v3

Creates a simple REST endpoint.

package main import ( "fmt" "github.com/emicklei/go-restful/v3" ) func main() { ws := new(restful.WebService) ws.Route(ws.GET("/hello").To(func(req *restful.Request, resp *restful.Response) { resp.WriteAsJson(map[string]string{"message": "Hello"}) })) fmt.Println("Service created") }
Debug
Known issues
breakingv3 has breaking changes from v2, including import path and API.
fix
Use github.com/emicklei/go-restful/v3 for v3.
affects: >=3.0.0
Upgrade
Version history
3.13.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
emicklei-go-restful-v3 — go get emicklei-go-restful-v3 · libregistry