11 lines
149 B
Go
11 lines
149 B
Go
|
package settings
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
func Get(key, defaultVal string) string {
|
||
|
if val := os.Getenv(key); val != "" {
|
||
|
return val
|
||
|
}
|
||
|
return defaultVal
|
||
|
}
|