First make sure that you have go installed on your system
go version
– If go is installed but your version is not 1.22 then remove you go and reinstall again using following article
rm $(which go)
– If go is not installed in you can install using following article