首页 资源列表 文章列表

golang入门--安装和运行第一个程序

下载地址: https://golang.google.cn/dl/

windows下载

2、C盘新建工作文件夹go,新建文件t.go

package main
import "fmt"
func main(){
	fmt.Println("hello world!")
}

3、运行

cd C:\go

go run t.go

输出 hello world!