Hi All,
I'm just about to try and dig into learning Go for the first time - trying to get it installed on a Windows machine but even after a successful installation the 'go' command isn't being recognized... I've installed using Chocolatey and pasted the outputs below - has anyone run into this before or know how to resolve this issue?
PS C:\Users\$> choco install -y golang Chocolatey v0.11.3 Installing the following packages: golang By installing, you accept licenses for the packages. Progress: Downloading golang 1.17.3... 100% golang v1.17.3 [Approved] golang package files install completed. Performing other installation steps. Downloading golang 64 bit from 'https://golang.org/dl/go1.17.3.windows-amd64.msi' Progress: 100% - Completed download of C:\Users\$\AppData\Local\Temp\chocolatey\golang\1.17.3\go1.17.3.windows-amd64.msi (124.28 MB). Download of go1.17.3.windows-amd64.msi (124.28 MB) completed. Hashes match. Installing golang... golang has been installed. golang may be able to be automatically uninstalled. Environment Vars (like PATH) have changed. Close/reopen your shell to see the changes (or in powershell/cmd.exe just type `refreshenv`). The install of golang was successful. Software installed as 'msi', install location is likely default. Chocolatey installed 1/1 packages. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). PS C:\Users\$> go version go : The term 'go' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + go version + ~~ + CategoryInfo : ObjectNotFound: (go:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException PS C:\Users\$> refreshenv Refreshing environment variables from registry for cmd.exe. Please wait...Finished.. PS C:\Users\$> go version go : The term 'go' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + go version + ~~ + CategoryInfo : ObjectNotFound: (go:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException