美文网首页golang
golang的build命令

golang的build命令

作者: 仰望夜空一万次 | 来源:发表于2019-05-10 10:50 被阅读0次

下面命令会生成一个可执行文件realtime-chat

go build -o realtime-chat main.go rooms.go template.go

查看go build使用

go help build

The -o flag, only allowed when compiling a single package,
forces build to write the resulting executable or object
to the named output file, instead of the default behavior described
in the last two paragraphs.

相关文章

网友评论

    本文标题:golang的build命令

    本文链接:https://www.haomeiwen.com/subject/wxmooqtx.html