Giter Club home page Giter Club logo

letsgo's Introduction

letsGo.sh

Logo

Description

letsGo.sh is a Bash script designed to automate the installation and updating of Go (Golang) on Linux systems.

Features

  • Detects the latest version of Go.
  • Installs Go if not present.
  • Updates Go to the latest version if an older version is installed
  • Adds Go to the system PATH.

Prerequisites

  • A Linux-based operating system
  • Sudo privileges

Usage

  1. Download the script: git clone https://github.com/Darkcast/letsGO.git

  2. change into the directory cd letsGO

  3. Make the script executable: chmod +x letsGo.sh

  4. Run the script with sudo privileges: sudo ./letsGo.sh

What the Script Does

  1. Checks for for required packages (jq, curl, wget) if not present it will install them.
  2. Fetches the latest Go version information.
  3. Checks if Go is installed and compares the version.
  4. Downloads and installs the latest Go version if necessary.
  5. Creates a symbolic link for the Go executable.
  6. Adds Go to the PATH in the user's .profile file.

Note

  • This code requires root to move the binary into the appropiate directory, make sure you look at the code before executing.
  • After running the script, you may need to reload your profile or log out and back in for the PATH changes to take effect.

Troubleshooting

If you encounter any issues:

  • Ensure you have an active internet connection.
  • Verify that you have sudo privileges.
  • Check system logs for any error messages.
  • Check if your distro can install the required packages (wget, curl, jq) via the package manager.

Disclaimer

This script has only been tested on Ubuntu 24.04 LTS, it should work on other linux distros.

This script is provided as-is, without any warranties. Use at your own risk.

letsgo's People

Contributors

darkcast avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.