Skip to content

Commit 030bf9b

Browse files
committed
fixed the form of echo handle
1 parent b5a1eba commit 030bf9b

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)