Skip to content

Commit 4ad4db5

Browse files
committed
Merge pull request #31 from mikespook/master
the `echo` handle should match the function declaration.
2 parents b5a1eba + 030bf9b commit 4ad4db5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,16 +323,16 @@ func loadDencoSingle(method, path string, h denco.HandlerFunc) http.Handler {
323323
}
324324

325325
// Echo
326-
func echoHandler(c *echo.Context) error {
326+
func echoHandler(c *echo.Context) *echo.HTTPError {
327327
return nil
328328
}
329329

330-
func echoHandlerWrite(c *echo.Context) error {
330+
func echoHandlerWrite(c *echo.Context) *echo.HTTPError {
331331
io.WriteString(c.Response, c.Param("name"))
332332
return nil
333333
}
334334

335-
func echoHandlerTest(c *echo.Context) error {
335+
func echoHandlerTest(c *echo.Context) *echo.HTTPError {
336336
io.WriteString(c.Response, c.Request.RequestURI)
337337
return nil
338338
}

0 commit comments

Comments
 (0)