package route import ( "github.com/gin-gonic/gin" ) type IndexHandler struct{} func (IndexHandler) GetPath() string { return "" } func (c *IndexHandler) Routes(g gin.IRoutes) { g.Any("/", c.index) } func (IndexHandler) index(c *gin.Context) { c.String(200, "hello") }