可以将Go编译器安装在Windows上吗? [英] Can Go compiler be installed on Windows?
问题描述
我一直在寻找Windows编译器的 golang.org ,但似乎无法找到它。我只能看到Linux和OS X编译器。有人知道Go编程是否可以在Windows上完成,还是Google还没有实现?
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?
更新:现在看来,截至目前(2012年11月) ) golang.org 拥有windows 32 / x86_64的官方二进制版本。
Update: appears that as of now (Nov. 2012) golang.org has official binary releases for windows 32/x86_64.
推荐答案
现在有用于Windows的安装程序,请参阅在Windows下运行
There are now installers for Windows, see Go under Windows
HelloWorld.go
HelloWorld.go
package main
func main() {
println("Hello World!");
}
编译 8g
,与 8l
链接,然后执行。例子:
Compile with 8g
, link with 8l
and then execute. Example:
8g HelloWorld.go
8l -o HelloWorld.exe HelloWorld.8
HelloWorld
这篇关于可以将Go编译器安装在Windows上吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!