3rd
JAN

Google Go, windows version is out

Posted by Keith under Golang

There were only Linux/OSX versions – now someone built it for Windows ( http://code.google.com/p/go-windows/ )

Get http://go-windows.googlecode.com/files/go-1.zip

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)

Trackback URL for this post: http://blog.keithkim.com/2010/01/google-go-windows-version-is-out/trackback/

Leave a Reply