|
I have a I can't change the |
Answered by
caarlos0
Sep 8, 2025
Replies: 2 comments 4 replies
|
hmmm not sure, might need some extra work around it. |
1 reply
|
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)
} |
3 replies
Answer selected by
adhi-goel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it just works, don't need to escape: