I'm walking the first steps with Go language and I'm trying to install it in Debian Squeeze. I follow the step of downloading the source code and then, I did this on my terminal:
cd $GOROOT/src
./all.bash
At the end, it says this:
# Checking API compatibility.
Go version is "go1.1.1", ignoring -next /root/go/api/next.txt
~pkg net, func ListenUnixgram(string, *UnixAddr) (*UDPConn, error)
~pkg syscall (darwin-386), func Fchflags(string, int) error
~pkg syscall (darwin-386-cgo), func Fchflags(string, int) error
~pkg syscall (darwin-amd64), func Fchflags(string, int) error
~pkg syscall (darwin-amd64-cgo), func Fchflags(string, int) error
~pkg syscall (freebsd-386), func Fchflags(string, int) error
~pkg syscall (freebsd-amd64), func Fchflags(string, int) error
~pkg text/template/parse, type DotNode bool
~pkg text/template/parse, type Node interface { Copy, String, Type }
ALL TESTS PASSED
---
Installed Go for linux/amd64 in /root/go
Installed commands in /root/go/bin
So, the book says that I need to do some tests and compile it with 6g. But I try it this way:
Compile this first Go-program with: 6g test.go This compiles to a file: test.6 which is linked with the command: 6l test.6 This produces the executable named: 6.out which executes with the command: ./6.out and produces the output: Hello, world
But nothing works, my code is:
package main
func main() {
println(“Hello”, “world”)
}
So, I do not know what more to do... I do know now the name of my compiler, so I have no idea how to compile this in Debian... If you please, give a hand with this... I would be really thankfully to you!