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

我以前是用来go build生成文件的。但我只能 generate main,这意味着go build main.go工作而go build dao.go不会产生任何东西?

我怎样才能生成dao


慕村9548890
浏览 296回答 1
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.
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Go