windowsgogomobile

How can I install go mobile and have it work on windows?


I am having issues installing gomobile on windows with the command : go get golang.org/x/mobile/cmd/gomobile

It doesn't give me any error but it doesn't seem to be doing anything. When trying to execute gomobile afterwards I get the error:

'gomobile' is not recognized as an internal or external command, operable program or batch file.


Solution

  • So I figured the PATH where the go executable is differs from GOPATH. To find what my GOPATH was, I used the command

    go env GOPATH