-
|
I have a I can't change the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
hmmm not sure, might need some extra work around it. |
Beta Was this translation helpful? Give feedback.
-
|
it just works, don't need to escape: func TestIssue369(t *testing.T) {
t.Setenv("MAP", "s1:foo:9123,s3:bar:3333,s2:zaz:9999")
type Config struct {
Map map[string]string `env:"MAP"`
}
var cfg Config
isNoErr(t, Parse(&cfg))
isEqual(t, map[string]string{
"s1": "foo:9123",
"s2": "zaz:9999",
"s3": "bar:3333",
}, cfg.Map)
} |
Beta Was this translation helpful? Give feedback.
it just works, don't need to escape: