Skip to content

Instantly share code, notes, and snippets.

@mdsohelmia
Last active June 9, 2024 14:36
Show Gist options
  • Save mdsohelmia/c1e4f1a8b5788b73d704a79f0ae1835b to your computer and use it in GitHub Desktop.
Save mdsohelmia/c1e4f1a8b5788b73d704a79f0ae1835b to your computer and use it in GitHub Desktop.

Revisions

  1. mdsohelmia revised this gist Jun 9, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -4,3 +4,8 @@ set -e
    wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
    sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
    rm go1.22.4.linux-amd64.tar.gz

    echo "Checking golang version"
    echo "export PATH=$PATH:/usr/local/go/bin" >>~/.bashrc
    source ~/.bashrc
    go version
  2. mdsohelmia created this gist Jun 9, 2024.
    6 changes: 6 additions & 0 deletions install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #! /bin/bash
    set -e

    wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
    sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz
    rm go1.22.4.linux-amd64.tar.gz