package routes import "github.com/gin-gonic/gin" var r *gin.Engine // NewEngine - new gin engine func NewEngine() *gin.Engine { r = gin.Default() return r } // SetRoutes - func SetRoutes(r *gin.Engine) { r.GET("/", func(c *gin.Context) { c.String(200, "Hello") }) }