Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModGraph ¶ added in v1.0.0
ModGraph returns the dependencies found in a `go.mod` file. We cannot resolve a graph so we make all dependencies direct.
func ModulePath ¶ added in v1.1.4
Return the "module path" from a go.mod file
A file containing:
module example.com/foo
Returns "example.com/foo"
func SumGraph ¶ added in v1.0.0
SumGraph returns the dependencies found in a `go.sum` file. We cannot resolve a graph so we make all dependencies direct. Note `go.sum` includes dependencies which are not used and this may be inaccurate. https://github.com/golang/go/wiki/Modules#is-gosum-a-lock-file-why-does-gosum-include-information-for-module-versions-i-am-no-longer-using
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver maps modules from import paths to their pkg.Import representation.
Click to show internal directories.
Click to hide internal directories.