Documentation ¶
Index ¶
- func GetApplicationMode() *string
- func GetEnv(key string) []byte
- func GetEnvArrStr(key string) []string
- func GetEnvInt(key string) int
- func GetEnvIntWithDefault(key string, defaultValue int) int
- func GetEnvStr(key string) string
- func GetEnvStrWithDefault(key string, defaultValue string) string
- func GetListenPort() *string
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 GetEnvArrStr ¶ added in v1.0.4
GetEnvArrStr returns ENV variable from environment or .env file as []string if it's possible and ENV variable exists Default ""
func GetEnvInt ¶
GetEnvInt returns ENV variable from environment or .env file as int if it's possible and ENV variable exists Default 0
func GetEnvIntWithDefault ¶
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 ¶
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.