Documentation
¶
Index ¶
Constants ¶
const DefaultAppName = "web-service"
DefaultAppName is the app's default name, set to the "GO_ENV" environment variable
Variables ¶
This section is empty.
Functions ¶
func AppName ¶
AppName returns the application's name. The application name can be set as an environment variable, or it can passed as an argument.
func Get ¶
Get provides a way to get the value of a supplied environment variable. If it is not found, either the optionally supplied default value is returned, or an empty string.
func ServerAddress ¶
func ServerAddress() string
ServerAddress returns an appropriate address for http.ListenAndServe to use.
func ValidateEnvVars ¶
ValidateEnvVars provides a way to check that a given slice of environment variables have been set.
Types ¶
This section is empty.