This ideally is public and available on github.com. However, it could also be on cloud.google.com, code.cloudfoundry.org, go.opentelemetry.io, golang.org, gopkg.in, k8s.io, modernc.org, sigs.k8s.io, etc.
Version
Ideally a tag or possible release. If not it could be date + hash (e.g. v0.0.0-20220728103510-ee6ede2d64ed)
Indirect
Will be followed by // indirect
Parsing
Expect a byte[] and then return go.mod struct with the above data.
May consider looking at how upstream handles the go mod * functions when parsing.
The go.mod contains the dependencies with the following values:
See https://pkg.go.dev/cmd/go#hdr-The_go_mod_file for more details.
URL
This ideally is public and available on github.com. However, it could also be on cloud.google.com, code.cloudfoundry.org, go.opentelemetry.io, golang.org, gopkg.in, k8s.io, modernc.org, sigs.k8s.io, etc.
Version
Ideally a tag or possible release. If not it could be date + hash (e.g.
v0.0.0-20220728103510-ee6ede2d64ed
)Indirect
Will be followed by
// indirect
Parsing
Expect a byte[] and then return go.mod struct with the above data. May consider looking at how upstream handles the
go mod *
functions when parsing.