I'm writing a shell script and I need to pull something from github using the command go get github.com/aktau/github-release, but I first need to make sure that the person calling the script has GO installed on their machine. If they do not have it installed, my script will error out and tell them to install GO and then rerun the script.
I was thinking that I should just echo $GOPATH, but people can have GO installed without having their GOPATH defined.
How should I go about doing this?