golang运行hellowrld

官方教程地址 :https://golang.google.cn/doc/tutorial/getting-started

1.先安装golang安装包 https://golang.google.cn/dl/

2.编写hellowrld代码

package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}

3.执行命令

go run hello.go
原文地址:https://www.cnblogs.com/xiaqiuchu/p/14196762.html