Skip to content

Commit a28279b

Browse files
committed
Fixed handler type for Echo
Signed-off-by: Vishal Rana <[email protected]>
1 parent b5729ee commit a28279b

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)