Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalCheck ¶
func FatalCheck(key string)
FatalCheck checks that a key exists in the viper configuration. If not, it calls fatalf.
func RequiredEnv ¶
RequiredEnv checks that the specified environment variable exists. If not, it calls log.Fatalf.
func RequiredFloat64 ¶
RequiredFloat64 returns the value of the configuration variable specified by key. If that configuration var does not exist, it calls log.Fatalf
func RequiredInt ¶
RequiredInt returns the value of the configuration variable specified by key. If that configuration var does not exist, it calls log.Fatalf
func RequiredString ¶
RequiredString returns the value of the configuration variable specified by key. If that configuration var does not exist, it calls log.Fatalf
func RequiredStringSlice ¶
RequiredStringSlice returns the value of the configuration variable specified by key. If that configuration var does not exist, it calls log.Fatalf
Types ¶
This section is empty.