Wrapper in top of Gorilla Tool Kit inspired in Laravel Framework.
- Easy to write and read
- Route prefix
- Route group
- Middleware group
You might as well just copy the router.go file into your own project (and the router_test.go while you're at it for future generations) rather than adding a dependency.
But it is maintained as a Go module which you can get with:
go get github.com/martin3zra/router
Import it:
import (
"github.com/martin3zra/router"
)
The package will show you a clean way and guide you through the necessary steps to set up your routes.