[]string 字符串切片解析会出错
mi4tin opened this issue · 3 comments
mi4tin commented
[]string 字符串切片解析会出错
tianxiaoliang commented
请详细描述
mi4tin commented
比如有yaml字段:IPWhiteList []string `yaml:"ipWhiteList"`。
yaml为: restGate: listenAddress: "127.0.0.1:6001"
ipWhiteList:
- "127.0.0.1"
- "127.0.0.2"会在config-manager/unmarshal.go的setValue报错。
但是字段类型改为[]interface{}则不会错。具体我看了下,是因为将yaml直接识别为[]interface{}类型所致
…------------------ 原始邮件 ------------------
发件人: "Shawn"<notifications@github.com>;
发送时间: 2019年5月23日(星期四) 下午4:44
收件人: "go-chassis/go-archaius"<go-archaius@noreply.github.com>;
抄送: "王守虎"<sszu@qq.com>; "Author"<author@noreply.github.com>;
主题: Re: [go-chassis/go-archaius] []string 字符串切片解析会出错 (#71)
请详细描述
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
tianxiaoliang commented
是否愿意提PR修复?