julienschmidt / go-http-routing-benchmark

Go HTTP request router and web framework benchmark
BSD 3-Clause "New" or "Revised" License
1.65k stars 238 forks source link

the `echo` handle should match the function declaration. #31

Closed mikespook closed 9 years ago

mikespook commented 9 years ago

There will be a panic panic: echo: unknown handler after running go test.

The reason is the declaration of HandlerFunc is in echo.go, line 40:

HandlerFunc func(*Context) *HTTPError

It will not match the declaration func(*Context) error in the test.

julienschmidt commented 9 years ago

Thank you!