Not really exposed, but there is code you could copy.

https://golang.org/pkg/cmd/go/internal/modfile/#Parse

On Mon, 2019-09-02 at 22:44 -0700, James Pettyjohn wrote:
> Hi,
> 
> This might be a bad idea but I'm trying to parse the go.mod file for
> data 
> as part of my build process - if at all possible I'd like to avoid 
> duplicating the data that is already there in another file.
> 
> Is there an exposed package that can be used for this?
> 
> - J
> 

-- 
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/4d672a4c60b90b4552a5f5bf672e925f313cc942.camel%40kortschak.io.

Reply via email to