This message was deleted.
# general
s
This message was deleted.
r
Yes, that is exactly the method you would use. Are you running into any issues doing so?
g
Yeah, I think I might be. Lists and maps don't seem to be mapping very well: eg: fmt.Sprintf("%s" , stringSlice) -> "[1.2.3.4/32]" which blows up. but it will work after quoting each element - same approach for a map[string]string too - iterating over each key,val pair and wrapping it in '{}'
b
have you used
stack.SetAllConfig(...)
? it takes in a map of config you want to set.
g
I took a look ath
stack.SetAllConfig
but that requires an
auto.ConfigMap
- which is an alias to a
map[staring]auto.ConfigValue
.... which puts me in the same position - i still need to take maps and slices into account... but using json.Marshal handles it perfectly. Thanks for the help!