我以前是用來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 關注
- 315 瀏覽
添加回答
舉報
0/150
提交
取消