Skip to content

Instantly share code, notes, and snippets.

@chevdor
Last active April 26, 2018 10:34
Show Gist options
  • Save chevdor/236545f0c80bd4eb622c2604b8917770 to your computer and use it in GitHub Desktop.
Save chevdor/236545f0c80bd4eb622c2604b8917770 to your computer and use it in GitHub Desktop.

Revisions

  1. chevdor revised this gist Apr 26, 2018. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -6,3 +6,7 @@ echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc
    echo "export GOPATH=$HOME/GO" >> $HOME/.bashrc
    echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc
    source $HOME/.bashrc

    # CHECK
    go version
    go env
  2. chevdor revised this gist Apr 26, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,6 @@ sudo tar -xvf go1.10.linux-amd64.tar.gz
    sudo rm -rf /usr/local/go
    sudo mv go /usr/local
    echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc
    echo "export GOPATH=$HOME/Projects/ADMFactory/Golang" >> $HOME/.bashrc
    echo "export GOPATH=$HOME/GO" >> $HOME/.bashrc
    echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc
    source $HOME/.bashrc
  3. chevdor revised this gist Apr 26, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -5,3 +5,4 @@ sudo mv go /usr/local
    echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc
    echo "export GOPATH=$HOME/Projects/ADMFactory/Golang" >> $HOME/.bashrc
    echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc
    source $HOME/.bashrc
  4. chevdor revised this gist Apr 26, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
    sudo tar -xvf go1.10.linux-amd64.tar.gz
    sudo rm -rf /usr/local/go
    sudo mv go /usr/local
    echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc
    echo "export GOPATH=$HOME/Projects/ADMFactory/Golang" >> $HOME/.bashrc
  5. chevdor created this gist Apr 26, 2018.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
    sudo tar -xvf go1.10.linux-amd64.tar.gz
    sudo mv go /usr/local
    echo "export GOROOT=/usr/local/go" >> $HOME/.bashrc
    echo "export GOPATH=$HOME/Projects/ADMFactory/Golang" >> $HOME/.bashrc
    echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc