Skip to content

Instantly share code, notes, and snippets.

@tikg
Last active October 31, 2023 17:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tikg/a2d1e0d2abe83bba553351872883369e to your computer and use it in GitHub Desktop.
Save tikg/a2d1e0d2abe83bba553351872883369e to your computer and use it in GitHub Desktop.

Go Lang Setup (the easiest way)

Clone update-golang by @udhos

git clone https://github.com/udhos/update-golang  
cd update-golang  
sudo ./update-golang.sh  
source /etc/profile.d/golang_path.sh

While you're at it install mosint

Because hey, that was your purpose anyway...
go install -v github.com/alpkeskin/mosint@latest

Set environment variable permanently for your profile

cd ~  
vi .bashrc  
export GOROOT=$HOME/go  
export PATH=$PATH:$GOROOT/bin  

For troubleshooting, go:

Here,
Here,
and here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment