Replies: 1 comment
|
When you add a route it returns func main() {
e := echo.New()
var route *echo.Route
route = e.GET("/*", func(c echo.Context) error {
return c.String(http.StatusOK, route.Name)
})
//route.Name = "myNamedRoute"
if err := e.Start(":8080"); err != http.ErrServerClosed {
log.Print(fmt.Errorf("error when starting HTTP server: %w", err))
}
} |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there a way to get
HandlerNameinecholikegindoes?How to do it in
echo?All reactions