Go Language Resources Go, golang, go... NOTE: This page ceased updating in October, 2012

--- Log opened Fri Dec 25 00:00:36 2009
02:04 -!- reppie [i=refugee@elvis.mu.org] has left #go-run []
02:21 < goplexian> []int{1,2,3}[0:2]
02:21 < goplexian> @eval []int{1,2,3}[0:2]
02:21 < rndbot> [1 2]
02:22 < goplexian> @eval []string{"#334455", "#123444"}[1:]
02:22 < rndbot> [#123444]
02:23 < goplexian> @eval [][]string{[]string{"#334455", "#123444"},
[]string{"foo", "boo"}}[1:]
02:23 < rndbot> [[foo boo]]
02:23 < goplexian> @eval [][]string{[]string{"#334455", "#123444"},
[]string{"foo", "boo"}}[1:][1:]
02:23 < rndbot> []
02:23 < goplexian> @eval [][]string{[]string{"#334455", "#123444"},
[]string{"foo", "boo"}}[1][1]
02:23 < rndbot> boo
02:32 < goplexian> @eval [][]int{[]int{1,2,3}, []string{"foo","boo"}}
02:32 < rndbot> <Error: cannot use (node ARRAYLIT) (type []string) as
type []int in array index>
--- Log closed Sat Dec 26 00:00:37 2009