Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 884 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 884 Bytes

Router

Wrapper in top of Gorilla Tool Kit inspired in Laravel Framework.

  • Easy to write and read
  • Route prefix
  • Route group
  • Middleware group

Install

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

Usage

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.

router