Renames []HandleFunc to HandlersChain

This commit is contained in:
Manu Mtz-Almeida
2015-05-07 11:30:01 +02:00
parent 79131ac84d
commit eb3e9293ed
11 changed files with 28 additions and 27 deletions

View File

@ -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