下面命令会生成一个可执行文件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.