Skip to content

Instantly share code, notes, and snippets.

@securibee
Created March 30, 2020 18:40
Show Gist options
  • Select an option

  • Save securibee/b27a608fa8f896b00bb55ae6b80bd627 to your computer and use it in GitHub Desktop.

Select an option

Save securibee/b27a608fa8f896b00bb55ae6b80bd627 to your computer and use it in GitHub Desktop.

Revisions

  1. securibee created this gist Mar 30, 2020.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    versionGo="1.13";

    sudo rm -rf /usr/local/go;
    wget -q -P tmp/ https://dl.google.com/go/go"${versionGo}".linux-amd64.tar.gz;
    sudo tar -C /usr/local -xzf tmp/go"${versionGo}".linux-amd64.tar.gz;
    rm -rf tmp/;

    #~/bashrc
    # Go Global variables
    export GOROOT=/usr/local/go
    export GOPATH=$HOME/go
    export PATH=$GOPATH/bin:$GOROOT/bin:$PATH