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.
gorest
✓ github.com/tideland/gorest
Create a simple RESTful resource.
package main
import (
"github.com/tideland/gorest"
)
func main() {
gorest.RegisterResource("hello", &HelloResource{})
gorest.Start()
}
type HelloResource struct{}
func (r *HelloResource) Get(ctx gorest.Context) {
ctx.Write([]byte("Hello, World!"))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.15.5+incompatiblelatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.