make some snippet content configurable
This commit is contained in:
@@ -11,7 +11,11 @@ import (
|
||||
|
||||
func getConfigFromEnv(string item) {
|
||||
var res = ""
|
||||
configarr = strings.Split(os.Getenv("CONFIG_ENVVAR", "ADDRESS,INITIALCOST,MONTHLYCOST"), ',')
|
||||
value := os.Getenv("CONFIG_ENVVAR")
|
||||
if value == "" {
|
||||
value = "ADDRESS,INITIALCOST,MONTHLYCOST"
|
||||
}
|
||||
configarr = strings.Split(value, ',')
|
||||
if len(configarr) < 3 {
|
||||
logit("CONFIG_ENVVAR has less than 3 elements")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user