Last active
January 14, 2018 00:35
-
-
Save dalitun/42e973d1698ac36fd67f1a379d79ac17 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export GOROOT=$HOME/go | |
export PATH=$GOROOT/bin:$PATH | |
export GOPATH=$HOME/mygoproject1 | |
export PATH=$GOPATH/bin:$PATH | |
=========== | |
GO15VENDOREXPERIMENT=1 go run main.go | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo curl -O https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | |
sudo tar -xvf go1.6.linux-amd64.tar.gz | |
sudo mv go /usr/local | |
echo export PATH=$PATH:/usr/local/go/bin | |
export GOROOT=$HOME/go | |
export PATH=$PATH:$GOROOT/bin | |
mkdir $HOME/work | |
export GOPATH=$HOME/work | |
mkdir -p work/src/github.com/user/hello | |
nano work/src/github.com/user/hello/hello.go | |
go install github.com/user/hello | |
sudo $GOPATH/bin/hello | |
curl https://glide.sh/get | sh | |
glide init | |
glide get github.com/Masterminds/semver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment