You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
338 B

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