跳转至

golang注意事项

1. 编译没有生成可执行文件

如果编译没有报错,但就是没有生成可执行文件,原因时,你编译的包没有main包。

要想编译出可执行文件,必要要有 `package main`包 和 `main`函数