package handlers import ( "github.com/gin-gonic/gin" "jp.wtf/go-fishing/internal/db" v1 "jp.wtf/go-fishing/internal/handlers/v1" ) type Env struct { DB *db.Database } func (env *Env) RegisterRoutes(rg *gin.RouterGroup) { v1Router := v1.V1Router{DB: env.DB} v1Router.RegisterRoutes(rg) }