0
我用go build
生成文件。但我只能生成main
,这意味着go build main.go
工作,而go build dao.go
不会产生任何东西?“go build”不生成golang中的文件
如何生成dao
?
我用go build
生成文件。但我只能生成main
,这意味着go build main.go
工作,而go build dao.go
不会产生任何东西?“go build”不生成golang中的文件
如何生成dao
?
从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.
什么是你想干什么? – freeformz