The program 'go' is currently not installed. You can install it by typing:sudo apt-get install gccgo-go
> On Wednesday, 11 October 2017 16:04:28 UTC+11, Pat Farrell wrote:
> 1) is the standard documentation wrong/out of date?What documentation are you referring to? Did you read https://golang.org/doc/code.html ?
> 2) how do I get the go build process to create a hello.exe rather than go.exe?I suspect Go uses your current directory to name your output file. Read https://golang.org/doc/code.html how to organize your Go code. You could also use -o flag to provide whatever output file name you like, for example "go build -o hello.exe".
> 3) how do I get the bash shell to let me just type 'go build' like we all want?
What bash shell are you talking about? Windows does not come with bash shell. If you have Linux install, then you should install Linux version of Go, not Windows version of Go.
> On Thursday, 12 October 2017 02:34:49 UTC+11, Pat Farrell wrote:
> https://golang.org/doc/install
This one says "... Next, make the directory src/hello inside your workspace ...". And, I take it, you skipped that step.
> ... Microsoft has decided to provide a real bash shell with real Ubuntu utilities. It has apt-get and is pretty nice, way better than the old cmd shell
https://msdn.microsoft.com/en-us/commandline/wsl/about
If you want to use WSL, then you should treat it as Linux (because it is not Windows). So you should install Linux version of Go on WSL, not Windows version. And WSL is not supported by Go yet (see https://github.com/golang/go/issues/16628 for details).
I hope it helps.
On Thursday, 12 October 2017 09:28:42 UTC+11, Pat Farrell wrote:> Yes, I didn't understand what a "workspace" is. Still don't know what that buzzword means.I suggested you read https://golang.org/doc/code.html - it should answer your question.
```set GOPATH=c:\gopath```
> That thread is at least a year old. Back then it was in Beta from MS. Its released now.Sure. But Go is still not supported on WSL.
If you want to use development environment with bugs, then sure, you could do that.
> Go is claimed to be cross platform, and the language sure looks to be that way. But the installation instructions on Windows seem to be an afterthought and fairly out of date.It is hard for me to judge (I have used Go for many years).
Go, its libraries and tools are written in Go. So Go installation does not installs any gnu / cygwin stuff.
Did you install the Windows or Linux go binary distribution?
The MSI is a Windows application, whereas apt-get would install the
Linux binary of go.
WSL has you actually running Linux binaries on Windows unless you
specifically go and choose a Windows executable.