golang的build命令
2019-05-10 本文已影响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.