From 4bcadc85edff29dc315905c8c520e3369a7e1476 Mon Sep 17 00:00:00 2001 From: hjp Date: Fri, 16 Apr 2010 09:01:09 +0000 Subject: [PATCH] set golang environment --- .zshenv | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.zshenv b/.zshenv index e040b3e..7adb6b3 100644 --- a/.zshenv +++ b/.zshenv @@ -294,3 +294,15 @@ case "$FQDN" in ;; 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