import "github.com/psampaz/go-mod-outdated/internal/mod"
Package mod provides functionality around modules
type Module struct { Path string `json:",omitempty"` // module path Version string `json:",omitempty"` // module version Versions []string `json:",omitempty"` // available module versions Replace *Module `json:",omitempty"` // replaced by this module Time *time.Time `json:",omitempty"` // time version was created Update *Module `json:",omitempty"` // available update (with -u) Main bool `json:",omitempty"` // is this the main module? Indirect bool `json:",omitempty"` // module is only indirectly needed by main module Dir string `json:",omitempty"` // directory holding local copy of files, if any GoMod string `json:",omitempty"` // path to go.mod file describing module, if any Error *ModuleError `json:",omitempty"` // error loading module GoVersion string `json:",omitempty"` // go version used in module }
Module holds information about a specific module listed by go list
FilterModules filters the list of modules provided by the go list command
CurrentVersion returns the current version of the module taking into consideration the any Replace settings
HasUpdate checks if the module has a new version
InvalidTimestamp checks if the version reported as update by the go list command is actually newer that current version
NewVersion returns the version of the update taking into consideration the any Replace settings
ModuleError represents the error when a module cannot be loaded
Package mod imports 1 packages (graph) and is imported by 1 packages. Updated 2019-10-18. Refresh now. Tools for package owners.