Skip to content

Commit 41a719f

Browse files
committed
Merge pull request #37 from vishr/master
Fixed handler type for Echo
2 parents b5729ee + a28279b commit 41a719f

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
@@ -326,16 +326,16 @@ func loadDencoSingle(method, path string, h denco.HandlerFunc) http.Handler {
326326
}
327327

328328
// Echo
329-
func echoHandler(c *echo.Context) *echo.HTTPError {
329+
func echoHandler(c *echo.Context) error {
330330
return nil
331331
}
332332

333-
func echoHandlerWrite(c *echo.Context) *echo.HTTPError {
333+
func echoHandlerWrite(c *echo.Context) error {
334334
io.WriteString(c.Response(), c.Param("name"))
335335
return nil
336336
}
337337

338-
func echoHandlerTest(c *echo.Context) *echo.HTTPError {
338+
func echoHandlerTest(c *echo.Context) error {
339339
io.WriteString(c.Response(), c.Request().RequestURI)
340340
return nil
341341
}

0 commit comments

Comments
 (0)