wk go list find blog view edit

Go language



hg clone https://go.googlecode.com/hg go
cd go

export GOROOT=$PWD
export GOBIN=$GOROOT/bin
export GOARCH=386
export GOOS=linux
export PATH=$GOBIN:$PATH
cd src
./all.bash


To compile with gcc-go

$ gcc hello.go -lgo -lgobegin


To call C functions with strange weird names:

void foo(int bla) __asm__("foo.foo");
foo(3);