@@ -19,7 +19,7 @@ type Configurator interface {
1919}
2020
2121// GetEnvString gets a string from the environment, falling back to the same field name in the config struct.
22- // If it doesn't exist in either, the function will log an error then exit 1
22+ // If it doesn't exist in either, the function will log an error and panic
2323func GetEnvString (config Configurator , field string ) string {
2424 defer func () {
2525 if r := recover (); r != nil {
@@ -34,7 +34,7 @@ func GetEnvString(config Configurator, field string) string {
3434}
3535
3636// GetEnvBool gets a bool from the environment, falling back to the same field name in the config struct.
37- // If it doesn't exist in either, the function will log an error then exit 1
37+ // If it doesn't exist in either, the function will log an error and panic
3838func GetEnvBool (config Configurator , field string ) bool {
3939 defer func () {
4040 if r := recover (); r != nil {
@@ -52,7 +52,7 @@ func GetEnvBool(config Configurator, field string) bool {
5252}
5353
5454// GetEnvInt gets an int from the environment, falling back to the same field name in the config struct.
55- // If it doesn't exist in either, the function will log an error then exit 1
55+ // If it doesn't exist in either, the function will log an error and panic
5656func GetEnvInt (config Configurator , field string ) int {
5757 defer func () {
5858 if r := recover (); r != nil {
@@ -70,7 +70,7 @@ func GetEnvInt(config Configurator, field string) int {
7070}
7171
7272// GetEnvFloat gets a float from the environment, falling back to the same field name in the config struct.
73- // If it doesn't exist in either, the function will log an error then exit 1
73+ // If it doesn't exist in either, the function will log an error and panic
7474func GetEnvFloat (config Configurator , field string ) float64 {
7575 defer func () {
7676 if r := recover (); r != nil {
0 commit comments