File go.sh of Package go1.4

# go toolchain env paths
libdir=lib
arch=386
if [ -x /usr/lib64/go1.4 ] ; then
  libdir=lib64
  arch=amd64
fi  

export GOOS="linux"
case "$(uname -m)" in
    *86)
        export GOARCH=$arch
        ;;
esac
export GOROOT=/usr/$libdir/go1.4
export GOBIN=/usr/bin/
export GOPATH=/usr/share/go1.4/contrib

if [ `id -u` != 0 ]; then
  export GOPATH=$HOME/go:/usr/share/go1.4/contrib
  export GOBIN=$HOME/go/bin
fi
openSUSE Build Service is sponsored by