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
I think this is too specific to be useful. e.Server is simply a *http.Server and it has quite a lot more configurations beside the Addr. I would prefer to keep Echo as simple as it is now, leave the specific stuffs for specific packages.
I that case, I would suggest to use caarlos0/env package for "read" the configuration from ENV vars and pass it to the e.Start()
Issue Description
Suggestion to use environment variable for
echo.Start()
Checklist
Expected behaviour
When executing
echo.Start()
, read the PORT(address) variable from an environment variable if the argument is not defined.Actual behaviour
address
argument to be executed.Version/commit
v4
I can create a pull request if necessary.
The text was updated successfully, but these errors were encountered: