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
gin also reads the environment in a init function and I'm guessing it's running before yours. The best thing to do if your not going to set the Environment variable outside of go, is to use the gin.SetMode() after reading in your config.
Description
I'v add my application configuration to a .env file , and load it by GoDotEnv , gin can get the env var "PORT" but not "GIN_MODE".
Screenshots
The text was updated successfully, but these errors were encountered: