Re: [go-nuts] Ellipse use error

2017-08-02 Thread Ian Lance Taylor
On Wed, Aug 2, 2017 at 6:30 AM, Mandolyte wrote: > This line of code: > retrTarget := path.Join(maindir, ss[0], pathparts[npp:]...) > > produces this error: > .\xxx.go:131: too many arguments in call to path.Join > have (string, string, []string...) > want (...string) > > Easy to w

[go-nuts] Ellipse use error

2017-08-02 Thread Mandolyte
This line of code: retrTarget := path.Join(maindir, ss[0], pathparts[npp:]...) produces this error: .\xxx.go:131: too many arguments in call to path.Join have (string, string, []string...) want (...string) Easy to work around, but I don't understand why it doesn't work... Thanks