To build a binary that will run on the Raspberry Pi, you need to have a Go cross compiler and enable it when building the executable.
To build the cross compiler for Linux/ARM (you only need to do this once):
cd /usr/local/go/src
sudo GOOS=linux GOARCH=arm ./make.bash --no-clean
Once you've done that, you can build a binary for Raspberry Pi: