Expressive, beautiful syntax.
Value elegance, simplicity, and readability?
Gophersaurus is designed for people like you. If you need help getting started, check out our great documentation.
The Golang framework for API services
package controllers
import "github.com/gophersaurus/gf.v1/http"
// Home is a controller.
var Home = struct {
Index func(resp http.Responder, req *http.Request)
}{
// Index is an action method for a GET request.
Index: func(resp http.Responder, req *http.Request) {
resp.Write(req, "Welcome fellow gopher.")
}
}
Gophersaurus is simple, thinking only of building beautiful APIs.
Deliver elegantly designed HTTP services at warp speed.
Value elegance, simplicity, and readability?
Gophersaurus is designed for people like you. If you need help getting started, check out our great documentation.
import (
c "path/to/controllers"
"github.com/gophersaurus/gf.v1"
) ...
func register(r *gf.Router) {
r.GET("/", c.Home.Index)
r.GET("/weather/:city", c.Weather.Show)
}
Whether you're a solo developer or a 20 person team, Golang and Gophersaurus is designed for both simplicity and teams.
A CLI tool for starting new Gophersaurus projects.
→ gf new SuperCoolProject
A new look at ORMs, painless routing, powerful concurrency, and simple authentication for building modern scalable API services.
// generate resource methods for users
Users := gf.NewResourceController(
models.NewUser()
)
// extend users
Users.Extend(models.NewAddress())
Revolutionize how you build web services.
Gophersaurus takes advantage of httprouter which boasts zero garbage collection and incredible benchmarks. Just wait until you see Subrouting!
API documentation for HTTP web services is often missing. Gophersaurus auto-generate endpoints as you update your routes. No more missing docs.
Gophersaurus thinks you should version your API. Set up yourself and your clients for success. Don't fear breaking changes, embrace them!