mirror of
https://github.com/gin-gonic/gin.git
synced 2025-08-06 15:50:30 +08:00
Renames []HandleFunc to HandlersChain
This commit is contained in:
@ -286,7 +286,7 @@ func TestGithubAPI(t *testing.T) {
|
||||
router := New()
|
||||
|
||||
for _, route := range githubAPI {
|
||||
router.Handle(route.method, route.path, []HandlerFunc{func(c *Context) {
|
||||
router.Handle(route.method, route.path, HandlersChain{func(c *Context) {
|
||||
output := H{"status": "good"}
|
||||
for _, param := range c.Params {
|
||||
output[param.Key] = param.Value
|
||||
|
Reference in New Issue
Block a user