FAS Computer Services to Harvard University IT: (617) 495-7777.
Go is an expressive, concurrent, garbage-collected
language. There is no relation with Goo
and Go!.
1. Prepare:
on a standard linux machine, add the following lines to .bashrc
export GOROOT=/prog3/go
export GOOS=linux
export GOARCH=386
export GOBIN=/bin
Possibly get some tools:
sudo apt-get install bison gcc libc6-dev ed
2. Install
sudo apt-get install mercurial
hg clone -r release https://go.googlecode.com/hg/
3. Compile
cd /src
./all.bash
4. Test
write a file hello.go
package main
import "fmt"
func main() { fmt.Printf("hello, world
") }
8g hello.go
8l hello.8
./8.out
|