安装好go基础环境后,我们用go语言来实现hello world程序。
hello world
编写如下一个文件hello.go
hello.go
然后在该文件的当前路径下执行以下命令,就可以运行该程序了
$ go run hello.go hello world
Last updated 5 years ago
Was this helpful?