Elegant services. Beautiful code.

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.")
    }
  }

		
Thoughtful API Design

Did someone say rapid?

Gophersaurus is simple, thinking only of building beautiful APIs.
Deliver elegantly designed HTTP services at warp speed.

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.


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)
}
	

Tailored for your team.

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

	

Modern toolkit. Pinch of magic.

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())

	
Powerful, Modern Features

Powerful, Modern Features

Revolutionize how you build web services.

Blazing Fast Router

Gophersaurus takes advantage of httprouter which boasts zero garbage collection and incredible benchmarks. Just wait until you see Subrouting!

Auto Documentation

API documentation for HTTP web services is often missing. Gophersaurus auto-generate endpoints as you update your routes. No more missing docs.

API Versioning

Gophersaurus thinks you should version your API. Set up yourself and your clients for success. Don't fear breaking changes, embrace them!