LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File go.sh of Package go (Project devel:languages:go)

# go toolchain env paths
export GOOS="linux"
case "$(uname -m)" in
    *86)
	export GOARCH=386
	libdir=lib
	;;
    x86_64)
	export GOARCH=amd64
	libdir=lib64
	;;
    ppc64)
	export GOARCH=ppc64
	libdir=lib64
	;;
    ppc64le)
	export GOARCH=ppc64le
	libdir=lib64
	;;
    arm*)
	export GOARCH=arm
	libdir=lib
	;; 
esac
export GOROOT=/usr/$libdir/go
export GOBIN=/usr/bin
export GOPATH=/usr/share/go/contrib

if [ `id -u` != 0 ]; then
  export GOPATH=$HOME/go:/usr/share/go/contrib
  export GOBIN=$HOME/go/bin
fi