Can Go compiler be installed on Windows?

前端 未结 9 2064
粉色の甜心
粉色の甜心 2020-12-23 14:16

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 don

9条回答
  •  隐瞒了意图╮
    2020-12-23 14:38

    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
    

提交回复
热议问题