Hi Jens,

> Is there a clean way to identify if the current working directory is a go 
> module and to get module information from go.mod (i.e. a parser fo go.mod 
> files)?

go env GOMOD

> I did seach the documentation on golang.org but could not find any 
> information.

Depends on what you want. If you want the go.mod file itself you'll want:

go mod edit -json

Else if you want details about the dependencies:

go list -m all

Thanks,


Paul

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to