set golang environment

This commit is contained in:
hjp 2010-04-16 09:01:09 +00:00
parent 31c055c6fe
commit 4bcadc85ed
1 changed files with 12 additions and 0 deletions

12
.zshenv
View File

@ -294,3 +294,15 @@ case "$FQDN" in
;; ;;
esac esac
if [ -d $HOME/go ]
then
export GOROOT=$HOME/go
export GOOS=linux
case `uname -m` in
x86_64)
export GOARCH=amd64
;;
*)
export GOARCH=386
esac
fi