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.
go build github.com/yatayatayta/cmd/magic1
go build github.com/yatayatayta/cmd/magic2
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,Probably I am wrong - but I don't if I am wrong because I am doing something wrong or because the concept is wrong.I have a project which will generate few binaries, therefore, I have few packages under cmd, like:----> cmd/magic1----> cmd/magic2When I have only magic1 or magic2 under cmd, when I call:$ go build ./cmd/...It generates the magic1 binary correctly. But when I have both, the same command generates no binary at all.