Can Go compiler be installed on Windows?

WindowsGo

Windows Problem Overview


I've been looking on golang.org for a Windows compiler, but I can't seem to find it. I can only see Linux and OS X compilers. Does anyone know if Go programming can be done on Windows, or is it something that Google hasn't implemented yet?

Update: appears that as of now (Nov. 2012) golang.org has official binary releases for windows 32/x86_64.

Windows Solutions


Solution 1 - Windows

There are now installers for Windows, see Go under Windows

HelloWorld.go

package main

func main() {
	println("Hello World!");
}

Compile with 8g, link with 8l and then execute. Example:

8g HelloWorld.go
8l -o HelloWorld.exe HelloWorld.8
HelloWorld

Solution 2 - Windows

It hasn't made it onto the Go Lang FAQ yet, but from the changelog:

> Why doesn't Go run on Windows? We understand that a significant fraction of computers in the world run Windows and it would be great if those computers could run Go programs. However, the Go team is small and we don't have the resources to do a Windows port at the moment. We would be more than willing to answer questions and offer advice to anyone willing to develop a Windows version.

Solution 3 - Windows

Yes! As of 2012 the Go homepage offers an official Windows installer (32 or 64 bit) https://golang.org/dl/

Solution 4 - Windows

Despite the fact that Go is only two days old, this question has already become a FAQ on the Go mailinglist. (Unfortunately, it has not yet been added to the FAQ list on the website.)

Basically, Go is done by a very small group of people, so they simply do not have the time nor the resources to do a Windows port. That very small group of people also happens to be the people who invented Unix, so that was kind of a natural first target.

Solution 5 - Windows

Not yet.

The authors of Go have very very deeply roots on non Windows operating systems ( Trivia: who of them created no less than the very UNIX operating system )

So, don't expect to have a Windows port from them any time soon.

The language is open source, so it will be just a matter of time ( make it from 6 - 8 ehrm months ) for a Windows implementation will be available.

Solution 6 - Windows

So if you, like me, are on Windows a lot of the time and want to do some Go programming right now, you can do it on a VM. I use VirtualBox running Ubuntu in seemless mode. I already had it set up because I like Linux better than Windows for a lot of things.

Building and working with Go has been totally painless for me. I have a Bash open in a terminal to run my build and try my app. The source directory is a shared folder between Windows and Linux (a VirtualBox feature but I'm sure VMWare has the same thing). I edit my code in Komodo Edit on Windows and use Mercurial for the same source code on both OSes.

Solution 7 - Windows

Although there is no Windows version at the moment, it can presumably be compiled using Cygwin on a Windows platform.

Solution 8 - Windows

Various efforts to port Go to windows are underway.

The most advance and that can already build and run some code is here: http://code.google.com/r/hectorchu-go-windows/

Solution 9 - Windows

Installation of Go on windows is straight forward if you use the experimental x32 windows port . Documentation of the steps for Go installation on windows can found here

You will probably also want the MinGW tools (bash, make, gcc, etc...): http://sourceforge.net/projects/mingw/files/

and the GTK+ files and tools (the "all-in-one bundle" includes pkg-config): http://www.gtk.org/download/win32.php

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser208987View Question on Stackoverflow
Solution 1 - WindowsJonasView Answer on Stackoverflow
Solution 2 - WindowsmbarnettView Answer on Stackoverflow
Solution 3 - WindowsColonel PanicView Answer on Stackoverflow
Solution 4 - WindowsJörg W MittagView Answer on Stackoverflow
Solution 5 - WindowsOscarRyzView Answer on Stackoverflow
Solution 6 - WindowsRob RussellView Answer on Stackoverflow
Solution 7 - WindowsFrankView Answer on Stackoverflow
Solution 8 - WindowsurielView Answer on Stackoverflow
Solution 9 - WindowssudhakarView Answer on Stackoverflow