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?

See "go help packages" (on the web at
https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns).

Ian

-- 
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/CAOyqgcWW979QhOy9e%2BSVrRcxMv%2BrTwr5YVA4jc%2BFr6H13NJ5Bw%40mail.gmail.com.

Reply via email to