golang常用操作与命令

 

1.执行golang文件

go run hello_world.go

 

2.编译成可执行文件

go build hello_world

则会生成hello_world可执行文件,即可直接运行
./hello_world

 

相关文章: