I start learning Go programming by watching online tutorials. I use Windows command prompt. However, after I typed
set GOOS = darwin then used
go env to print environment variables,
GOOS was not set to
GOOS=darwin but still
GOOS=windows as default.
Here is what I got. Could someone tell me where I went wrong such that I cannot make change on
C:\GoPath\src\palindrome>set GOOS = darwin C:\GoPath\src\palindrome>go env set GOARCH=amd64 set GOBIN= set GOEXE=.exe set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOOS=windows