Re: [go-nuts] Array Join Fail vs Slice Join Success

2017-01-26 Thread Ian Lance Taylor
On Thu, Jan 26, 2017 at 7:45 AM, wrote: > var s [2]string > s[0] = "PASS" > s[1] = "FAIL" > fmt.Println(strings.Join(s, ",")) > > > The following code fails, I know this works with a slice, But I am a newbie > to go and I am trying to figure out the reason why this fails? Does it have > something

[go-nuts] Array Join Fail vs Slice Join Success

2017-01-26 Thread joeymiller50
var s [2]string s[0] = "PASS" s[1] = "FAIL" fmt.Println(strings.Join(s, ",")) The following code fails, I know this works with a slice, But I am a newbie to go and I am trying to figure out the reason why this fails? Does it have something to do with cap or len? -- You received this message