我以前是用来go build生成文件的。但我只能 generate main,这意味着go build main.go工作而go build dao.go不会产生任何东西?我怎样才能生成dao?
1 回答
一只斗牛犬
TA贡献1784条经验 获得超2个赞
来自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.
- 1 回答
- 0 关注
- 295 浏览
添加回答
举报
0/150
提交
取消