一尘不染

“ go build”不会在golang中生成文件[重复]

go

我曾经go build生成文件。但是我只能生成main,这意味着什么都不生成就可以go build main.go工作go builddao.go

我如何产生dao


阅读 415

收藏
2020-07-02

共1个答案

一尘不染

来自go help build

When the command line specifies a single main package,
build writes the resulting executable to output.
Otherwise build compiles the packages but discards the results,
serving only as a check that the packages can be built.
2020-07-02