命令行 go build -o main.go 等等
报出
# command-line-arguments runtime.main_main·f: function main is undeclared in the main package
直接goland运行
爆出
command-line-arguements 等等
goland中直接删除配置( Edit Configurations ),或者把运行模式从 File 改为 Package 即可解决
如下
https://www.cnblogs.com/landv/p/11675356.html
https://www.cnblogs.com/landv/p/11675356.html
https://zhuanlan.zhihu.com/p/591234261
https://zhuanlan.zhihu.com/p/591234261