亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

“go build”不會在golang中生成文件

“go build”不會在golang中生成文件

Go
慕村9548890 2021-10-18 15:19:03
我以前是用來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.


查看完整回答
反對 回復 2021-10-18
  • 1 回答
  • 0 關注
  • 315 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號