我知道如何使用go运行文件go run file.go,但是我想将其编译为可执行文件。当我抬头时,我发现了6g,6l似乎它们已经过时了。
go run file.go
6g
6l
我想要类似的东西:
go-compiler -o output file.go
你要:
go build -o executable source.go
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
点击生成二维码
我来说两句