【问题标题】:How to compile a program in Go如何在 Go 中编译程序
【发布时间】:2015-04-06 09:48:14
【问题描述】:

我知道如何使用 go run file.go 在 go 中运行文件,但我想将其编译为可执行文件。 抬头一看,发现6g6l好像已经过时了。

我想要类似的东西:

go-compiler -o output file.go

【问题讨论】:

标签: go compilation executable


【解决方案1】:

你想要:

go build -o executable source.go

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-05
  • 2012-07-04
  • 2022-08-16
  • 2021-05-16
  • 1970-01-01
相关资源
最近更新 更多