You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code should be sufficient to illustrate the issue.
e := echo.New()
e.StripTrailingSlash()
e.Index("public/index.html")
e.Run(":8000")
Assuming that index.html exists within a public folder in the same directory as the Go file containing the code above, going to http://localhost:8000 returns a 404 instead of index.html.
Commenting out the StripTrailingSlash line fixes the issue.