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

--- Log opened Fri Jan 08 00:00:44 2010
17:55 -!- zeroday [n=zeroday@p579CBC3B.dip.t-dialin.net] has joined #go-run
17:56 < zeroday> a, b := 0, 1; b, a = a, b; fmt.Printf(" a = %d; b = %d", a,
b);
17:58 < zeroday> @eval 72+26
17:58 < rndbot> 98
17:59 < zeroday> @eval a, b := 0, 1; b, a = a, b; fmt.Printf(" a = %d; b =
%d", a, b);
17:59 < rndbot> <Error: syntax error near b, syntax error near b>
18:00 < zeroday> a, b := 0, 1; b, a = a, b; @eval fmt.Printf(" a = %d; b =
%d", a, b);
18:00 < zeroday> @eval strings.Bytes("xyz012")
18:00 < rndbot> [120 121 122 48 49 50]
18:02 < zeroday> > a, b := 0, 1; b, a = a, b; fmt.Printf(" a = %d; b =
%d", a, b);
18:02 < rndbot> a = 1; b = 0
18:03 < zeroday> > Fmt.Printf("This is teh HAwesome!\n");
18:03 < rndbot> <Error: undefined: Fmt>
18:03 < zeroday> > fmt.Printf("This is teh HAwesome!\n");
18:04 < rndbot> This is teh HAwesome!
18:08 < zeroday> > fmt.Printf("Hello, 世界\n")
18:08 < rndbot> Hello, 世界
18:09 < zeroday> > 1 << 64
18:09 < rndbot> <Error: 18446744073709551616 not used,
18446744073709551616 not used>
18:09 < zeroday> @eval 1 << 64
18:09 < rndbot> <Error: constant 18446744073709551616 overflows int>
18:09 < zeroday> @eval 1 << 63
18:09 < rndbot> <Error: constant 9223372036854775808 overflows int>
18:10 < zeroday> @eval 1 << 32
18:10 < rndbot> <Error: constant 4294967296 overflows int>
18:10 < zeroday> >fmt.Printf("%d\n", 1 << 32)
18:10 < zeroday> > fmt.Printf("%d\n", 1 << 32)
18:10 < rndbot> <Error: constant 4294967296 overflows int>
18:11 < zeroday> > fmt.Printf("%d\n", 1 << 31)
18:11 < rndbot> <Error: constant 2147483648 overflows int>
18:11 < zeroday> > fmt.Printf("%d\n", 1 << 30)
18:11 < rndbot> 1073741824
18:11 < zeroday> >fmt.Printf("%d\n", 1 << 31 - 1)
18:11 < zeroday> > fmt.Printf("%d\n", 1 << 31 - 1)
18:11 < rndbot> 2147483647
18:15 < zeroday> > var x uint64 = 1<<64 - 1; fmt.Printf("%d %x; %d
%x\n", x, x, int64(x), int64(x))
18:15 < rndbot> 18446744073709551615 ffffffffffffffff; -1 -1
18:16 < zeroday> @eval os.Getenv("HOME")
18:16 < rndbot> /home/mgruen
18:17 < zeroday> @eval os.Getenv("GOROOT")
18:17 < rndbot> /home/mgruen/go/safe
18:17 < zeroday> @eval os.Getenv("PATH")
18:17 < rndbot>
/bin:/usr/bin:/sbin:/usr/sbin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/home/mgruen/go/bin
18:20 < zeroday> @eval os.Getenv("PS1")
18:20 < rndbot> [\u@\h \W]\$
18:21 < zeroday> @eval os.Getenv("MANPATH")
18:21 < rndbot> <no output>
18:21 < zeroday> @eval os.Getenv("LANG")
18:21 < rndbot> en_US.UTF-8
18:22 < zeroday> @eval os.Getenv("OLDPWD")
18:22 < rndbot> <no output>
18:22 < zeroday> @eval os.Getenv("LC_TIME")
18:22 < rndbot> <no output>
18:26 < zeroday> > var i6 uint64 = 1<<64; fmt.Printf("%x\n", i6)
18:26 < rndbot> <Error: constant 18446744073709551616 overflows
uint64>
18:26 < zeroday> > var i6 uint64 = 1<<63; fmt.Printf("%x\n", i6)
18:26 < rndbot> 8000000000000000
18:26 < zeroday> > var i6 uint64 = -(1<<64); fmt.Printf("%x\n", i6)
18:26 < rndbot> <Error: constant -18446744073709551616 overflows
uint64>
18:27 < zeroday> > var i6 int64 = -(1<<63); fmt.Printf("%x\n", i6)
18:27 < rndbot> -8000000000000000
18:29 < zeroday> > var a, b float32; a = 0.1; b = 0.2; fmt.Printf("%f\n",
a + b)
18:30 < rndbot> 0.300000
18:30 < zeroday> > var a, b float64; a = 0.1; b = 0.2; fmt.Printf("%f\n",
a + b)
18:30 < rndbot> 0.300000
18:30 < zeroday> > var a, b float64; a = 0.1; b =
0.1999999999999999999999999999999; fmt.Printf("%f\n", a + b)
18:30 < rndbot> 0.300000
18:35 < zeroday> > import "sort"; sort.SortFloats([0.98, -1.2, 0.0,
3.141])
18:35 < rndbot> <Error: syntax error near import, syntax error near
0.98>
18:37 < zeroday> > import "sort"; sort.SortFloats([]float{0.98, -1.2,
0.0, 3.141})
18:37 < rndbot> <Error: syntax error near import>
18:38 < zeroday> > import "sort" sort.SortFloats([]float{0.98, -1.2, 0.0,
3.141})
18:38 < rndbot> <Error: syntax error near import>
18:40 < zeroday> > // nuts...
18:40 < rndbot> <no output>
18:40 < zeroday> @eval []float{0.98, -1.2, 0.0, 3.141}
18:40 < rndbot> [0.98 -1.2 0 3.141]
18:41 < zeroday> > import "sort"
18:41 < rndbot> <Error: syntax error near import>
18:41 < zeroday> @eval import "sort"
18:41 < rndbot> <Error: syntax error near import>
18:43 < zeroday> > sort.SortFloats([]float{0.98, -1.2, 0.0, 3.141})
18:43 < rndbot> <no output>
18:43 < zeroday> @eval sort.SortFloats([]float{0.98, -1.2, 0.0, 3.141})
18:43 < rndbot> <Error: sort.SortFloats((node ARRAYLIT)) used as
value>
18:44 < zeroday> @eval fmt.Printf("Hello, 世界\n")
18:44 < rndbot> <Error: implicit assignment of (n int, errno os.Error)
field 'n' in assignment...>
18:47 < zeroday> > v := []float{0.98, -1.2, 0.0, 3.141};
sort.SortFloats(v); fmt.Println(v)
18:47 < rndbot> <Error: sort redeclared as imported package name,
declaration at /tmp/usgadotugen.go:2>
18:48 < zeroday> > v := []float{0.98, -1.2, 0.0, 3.141};
sort.SortFloats(&v); fmt.Println(v)
18:48 < rndbot> <Error: sort redeclared as imported package name,
declaration at /tmp/gzbealpvgen.go:2...>
18:48 -!- zeroday [n=zeroday@p579CBC3B.dip.t-dialin.net] has left #go-run []
--- Log closed Sat Jan 09 00:00:45 2010