Last active
December 6, 2018 13:13
-
-
Save fd98279/ab28361fd6eba72028ca40cc0b1a0bea to your computer and use it in GitHub Desktop.
Revisions
-
fd98279 revised this gist
Dec 6, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,7 @@ sudo mv go /usr/local export GOROOT=/usr/local/go # Location where all the go source code will reside mkdir -p $HOME/Workspace/repos/go mkdir -p $HOME/Workspace/repos/go/{src,bin} export GOPATH=$HOME/Workspace/repos/go # Location where go will save the binaries built export GOBIN=${GOPATH}/bin -
fd98279 revised this gist
Dec 6, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,7 @@ sudo mv go /usr/local # Add to ~/.bashrc and ~/.profile (requried by VSCode) export GOROOT=/usr/local/go # Location where all the go source code will reside mkdir -p $HOME/Workspace/repos/go export GOPATH=$HOME/Workspace/repos/go # Location where go will save the binaries built export GOBIN=${GOPATH}/bin -
fd98279 renamed this gist
Dec 6, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
fd98279 created this gist
Dec 6, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Based on instructions at https://golang.org/doc/code.html # Get latest go build wget https://dl.google.com/go/go1.11.2.linux-amd64.tar.gz tar -xvf go1.11.2.linux-amd64.tar.gz sudo mv go /usr/local # Add to ~/.bashrc and ~/.profile (requried by VSCode) export GOROOT=/usr/local/go # Location where all the go source code will reside export GOPATH=$HOME/Workspace/repos/go # Location where go will save the binaries built export GOBIN=${GOPATH}/bin # Add binaries location to PATH export PATH=$GOPATH/bin:$GOROOT/bin:$PATH source ~/.profile go version