package main import ( "fmt" "github.com/gin-gonic/gin" ) import "log" func main(){ engine := gin.Default() engine.GET("/request_path", func(context *gin.Context) { fmt.Println("请求路径:", context.FullPath()) }) if err := engine.Run();err != nil { log.Fatal(err.Error()) } }
07-14
232
10-16
1600