The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/aws-scripts/setup_golang.sh

18 lines
565 B

#!/bin/bash -x
sudo yum update -y
sudo yum install -y golang
# GOROOT is the location where Go package is installed on your system
echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile
# GOPATH is the location of your work directory
echo "export GOROOT=/usr/lib/golang" >> $HOME/.bash_profile
# PATH in order to access go binary system wide
echo "export PATH=$PATH:$GOROOT/bin" >> $HOME/.bash_profile
export GOROOT=/usr/lib/golang
export GOROOT=/usr/lib/golang
export PATH=$PATH:$GOROOT/bin
source $HOME/.bash_profile
sudo go get github.com/go-stack/stack