Linting middlewares package

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2015-11-01 19:34:54 +01:00
parent 7766d0ddaa
commit 9387235a04
4 changed files with 11 additions and 15 deletions

View file

@ -1,6 +1,3 @@
/*
Copyright
*/
package middlewares
import (
@ -11,10 +8,12 @@ import (
"github.com/gorilla/mux"
)
// Routes holds the gorilla mux routes (for the API & co).
type Routes struct {
router *mux.Router
}
// NewRoutes return a Routes based on the given router.
func NewRoutes(router *mux.Router) *Routes {
return &Routes{router}
}