./... is a wildcard pattern that matches directories including and below
the current one

go list -f '{{.GoFiles}}' -tags MYTAGS ./...

should do what you want.

*From: *'White Hexagon' via golang-nuts <golang-nuts@googlegroups.com>
*Date: *Tue, May 14, 2019 at 11:17 AM
*To: *golang-nuts

Thanks Ian.
>
> I should have mentioned that I am using go 1.12.1 with modules.
>
> So my 'main' package/module has a number of sub-folder packages as
> dependencies.  I found the -deps option, but that seems to include every
> dependency (also useful info) but is there a way to limit that to just my
> sources?
>
> Thanks
> Peter
>
> go list -f '{{.GoFiles}}' -tags MYTAGS PKG
>>
>> --
> 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/ad1f7316-807a-44b5-bf8b-b94a7dda51a0%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/ad1f7316-807a-44b5-bf8b-b94a7dda51a0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAA%3DsxThuhBBEXt%3D78N4fzU0nw%2BDJ-6tOKrLh3-WeUTb%2BznqmOA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to