summaryrefslogtreecommitdiff
path: root/go/install_go.sh
diff options
context:
space:
mode:
Diffstat (limited to 'go/install_go.sh')
-rwxr-xr-xgo/install_go.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/go/install_go.sh b/go/install_go.sh
index 79264b7e..1674753e 100755
--- a/go/install_go.sh
+++ b/go/install_go.sh
@@ -20,3 +20,17 @@ else
mkdir ./golang
fi
tar -C ./golang -xzf $GO_VERSION.tar.gz
+
+
+export GOPATH=`pwd`
+export GO_LANG=`pwd`/golang/go/bin
+export GO_COMPILED=`pwd`/bin
+PATH="${GO_LANG}:${GO_COMPILED}:${PATH}"
+
+./golang/go/bin/go get golang.org/x/mobile/cmd/gomobile
+./golang/go/bin/go env
+echo "getting gomobile..."
+./golang/go/bin/go get golang.org/x/mobile/cmd/gomobile
+echo "initiating gomobile..."
+./bin/gomobile init
+