To install, unzip and set the following environment variables:
set GOROOT=[the go folder] set GOOS=mingw set GOARCH=386
and then add GOROOT\bin directory to PATH.
- Go Hompage: http://golang.org/
- Go packages: http://golang.org/pkg/
- Tutorial: http://golang.org/doc/go_tutorial.html
Sample Hello world source. Save below as “hello.go”:
package main import "fmt" func main() { fmt.Printf("hello, world\n") }
How to compile:
% 8g hello.go -> produces "hello.8" % 8l hello.8 -> produces "8.exe" (or "8.out" in Linux)