I used go build
to generate files. But I can only generate main
, which mean go build main.go
works while go build dao.go
does not generate anything?
How can I generate dao
?
From 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With