package main import ( "github.com/gin-gonic/gin" ) func main() { r := gin.Default() api := r.Group("api") v1 := api.Group("v1") v1.GET("user", func(c *gin.Context) { c.String(200, "多层router") }) r.Run() }