The easiest way to install go is with brew, macOS' package manager.
brew install go
To ensure it has been installed, you can type:
go version
# or
go env
Where is go actually installed? See anything in go env
that is similar?
Hints:
which <command>
locates a binary.ls -l <file>
will tell you if it's a symlink.- a symlink can point to another symlink!
Working with different versions of go? Some options include asdf-golang or linking other brew versions. The simplest solution would probably be docker.
The go playground is a great resource to quickly test snippets of code.