Skip to content

Instantly share code, notes, and snippets.

View shahiddev's full-sized avatar

Shahid Iqbal shahiddev

View GitHub Profile
@shahiddev
shahiddev / wsl-go-install.sh
Created May 6, 2018 21:00
Script to install Go 1.9.2 on Linux and WSL (Windows Subsystem for Linux)
#!/bin/bash
set -e
GVERSION="1.9.2"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="$HOME/projects/go"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directories already exist $GOROOT"