Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApplicationMode ¶
func GetApplicationMode() *string
GetApplicationMode returns the flag to the application launch mode. Looks at the APP_MODE environment variable if the application is running without a flag -mode Default release
func GetEnv ¶
GetEnv returns ENV variable from environment or .env file as []byte if it's possible and ENV variable exists Default 0
func GetEnvInt ¶ added in v1.0.1
GetEnvInt returns ENV variable from environment or .env file as int if it's possible and ENV variable exists Default 0
func GetEnvIntWithDefault ¶ added in v1.0.2
GetEnvIntWithDefault returns ENV variable from environment or .env file as int else returns default value
func GetEnvStr ¶
GetEnvStr returns ENV variable from environment or .env file as string if it's possible and ENV variable exists Default ""
func GetEnvStrWithDefault ¶ added in v1.0.2
GetEnvStr returns ENV variable from environment or .env file as string else returns default value
func GetListenPort ¶
func GetListenPort() *string
GetListenPort returns a flag to the port to launch the application. Looks at the PORT environment variable if the application is running without a flag. Default 80
Types ¶
This section is empty.