Hier nur in Kürze was zu tun war um ein erstes Go Programm zu starten:
vi ~/.bashrc
Eintragen:
export GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
Dann weiter:
. ~/.bashrc
hg clone -r release http://go.googlecode.com/hg/ $GOROOT
cd go
cd src
./all.bash
cd cmd/8g
vi hello.go
./8g hello.go
./8l hello.8
./8.out
hello, world
Es hat also tadellos geklappt! Danke Google, danke SuseLinux 11.1.
Der Inhalt von hello.go:
rainer@linux:~/go/src/cmd/8g> cat hello.go
package main
Neueste Kommentare
vor 5 Wochen 4 Tage
vor 9 Wochen 6 Tage
vor 5 Wochen 6 Tage
vor 11 Wochen 6 Tage
vor 12 Wochen 1 Stunde
vor 12 Wochen 2 Tage
vor 12 Wochen 2 Tage
vor 13 Wochen 5 Tage
vor 16 Wochen 5 Tage
vor 17 Wochen 1 Tag