Did you install the Windows or Linux go binary distribution? Sounds like you might have installed the Window distribution and running it in bash?
I installed the Linux go distribution and it worked just fine. I think I created a symlink from /usr/local/go/bin/go to /usr/local/bin/go, or you can alter your $PATH to include /usr/local/go/bin so you get access to go, good, and gofmt. On Wednesday, October 11, 2017 at 12:04:28 AM UTC-5, Pat Farrell wrote: > > I've installed the go 1.9 binary distribution on my windows 10 laptop. > I just let the install do the defaults. (in addition to learning go, I'm > trying to see if I can live with > bash under Windows, or if I have to reboot to a linux distro to avoid > going crazy, that is a separate topic) > > in the cmd shell > 'go build' works, but creates a file go.exe that when run, displays hello > world > it does not create the expected hello.exe > > in the bash shell, 'go build' does not work, it whines that 'go' is not a > program > > The program 'go' is currently not installed. You can install it by typing: > sudo apt-get install gccgo-go > > > > but 'go.exe build' does create a local go.exe which executes and displays > the expected hello world. > > Which raises a couple of questions: > > 1) is the standard documentation wrong/out of date? > 2) how do I get the go build process to create a hello.exe rather than > go.exe? > 3) how do I get the bash shell to let me just type 'go build' like we all > want? > > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.