Hi ,

is there a way to acces go module information programmatically?

Background: I am currently using spf13's cobra. It currently only works 
with packages inside GOPATH. 

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)?

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

Regards
Jens

-- 
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