第一个Go程序

安装好go基础环境后,我们用go语言来实现hello world程序。

编写如下一个文件hello.go

然后在该文件的当前路径下执行以下命令,就可以运行该程序了

$ go run hello.go
hello world

Last updated

Was this helpful?