【发布时间】:2015-08-14 02:11:27
【问题描述】:
filepath.Join 方法接受 ...string 参数,但我有一个 []string 我想传入。当我尝试这样做时,我收到以下错误:
cannot use append(elems, spadePath) (type []string) as type string in argument to filepath.Join
有没有办法在 []type 和 ...type 之间进行转换?
【问题讨论】:
标签: go