Installation
If you have Go but NOT 1.18+ then
-
Modify the
go.mod
file to your currently installed go base version number -
For example, I have go
1.18.1
installed but in the go mod I only need to write1.18
Don't have Go programming language? Let's FIX DAT
Debian/Ubuntu/Mint/etc.: sudo apt-get install golang-go
MacOS: brew install go
OR (For advanced users)
Manual Install (linux) commands
wget https://go.dev/dl/go1.18.2.linux-amd64.tar.gz
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
For other operating systems
https://go.dev/doc/install