See `go help packages` and https://go.dev/ref/spec#Packages.
On Thu, Feb 10, 2022 at 9:01 AM David Karr <davidmichaelk...@gmail.com> wrote: > When I enter "go help build", the first few lines shows this: > > usage: go build [-o output] [build flags] [packages] > > Build compiles the packages named by the import paths, > > The instructions say very little about what can be supplied as "packages". > It says it can be a list of .go files, and apparently assumes all of the > supplied files are in a single package , which seems like an odd assumption. > > However, I discovered one resource, and from my testing, that just > supplying "." (period) there also builds the application. > > From what I can see, it appears that the basic help information doesn't > tell the entire story about what can be supplied there, and exactly how > those values are used. > > What are all the legal variations of what can be supplied there, and what > are the exact semantics of those values? > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/a6e92bac-e8d6-4cea-b451-a7a1c14af6c3n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/a6e92bac-e8d6-4cea-b451-a7a1c14af6c3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kurtis Rader Caretaker of the exceptional canines Junior and Hank -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD-_EKHd%3Dzh3O3sTB6nScBeyFkGYTS2cyMMVG_6A7xo-Fw%40mail.gmail.com.