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
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