Versions in this module Expand all Collapse all v0 v0.0.8 Feb 24, 2021 Changes in this version + var ErrDisallowed = errors.New("disallowed module version") + var ForceUseModules bool + var HelpGoMod = &base.Command + var HelpModules = &base.Command + var RootMode Root + var Target module.Version + func AllowMissingModuleImports() + func AllowWriteGoMod() + func BinDir() string + func CheckAllowed(ctx context.Context, m module.Version) error + func CheckExclusions(ctx context.Context, m module.Version) error + func CheckRetractions(ctx context.Context, m module.Version) error + func CreateModFile(ctx context.Context, modPath string) + func DirImportPath(dir string) string + func DisallowWriteGoMod() + func EditBuildList(ctx context.Context, add, mustSelect []module.Version) error + func Enabled() bool + func HasModRoot() bool + func ImportFromFiles(ctx context.Context, gofiles []string) + func ImportMap(path string) string + func Init() + func IsRevisionQuery(vers string) bool + func ListModules(ctx context.Context, args []string, listU, listVersions, listRetracted bool) []*modinfo.ModulePublic + func LoadAllModules(ctx context.Context) []module.Version + func LoadModFile(ctx context.Context) + func LoadPackages(ctx context.Context, opts PackageOpts, patterns ...string) (matches []*search.Match, loadedPackages []string) + func Lookup(parentPath string, parentIsStd bool, path string) (dir, realPath string, err error) + func MatchInModule(ctx context.Context, pattern string, m module.Version, tags map[string]bool) *search.Match + func MinReqs() mvs.Reqs + func ModFile() *modfile.File + func ModFilePath() string + func ModInfoProg(info string, isgccgo bool) []byte + func ModRoot() string + func ModuleHasRootPackage(ctx context.Context, m module.Version) (bool, error) + func ModuleInfo(ctx context.Context, path string) *modinfo.ModulePublic + func PackageBuildInfo(path string, deps []string) string + func PackageDir(path string) string + func PackageImports(path string) (imports, testImports []string) + func PackageModule(path string) module.Version + func PackageModuleInfo(pkgpath string) *modinfo.ModulePublic + func Query(ctx context.Context, path, query, current string, allowed AllowedFunc) (*modfetch.RevInfo, error) + func QueryPattern(ctx context.Context, pattern, query string, current func(string) string, ...) (pkgMods []QueryResult, modOnly *QueryResult, err error) + func ReloadBuildList() []module.Version + func Replacement(mod module.Version) module.Version + func Selected(path string) (version string) + func ShortRetractionRationale(rationale string) string + func TargetPackages(ctx context.Context, pattern string) *search.Match + func TidyBuildList() + func TrimGoSum() + func Why(path string) string + func WhyDepth(path string) int + func WillBeEnabled() bool + func WriteGoMod() + type AllowedFunc func(context.Context, module.Version) error + type AmbiguousImportError struct + Dirs []string + Modules []module.Version + func (e *AmbiguousImportError) Error() string + func (e *AmbiguousImportError) ImportPath() string + type Conflict struct + Constraint module.Version + Dep module.Version + Source module.Version + type ConstraintError struct + Conflicts []Conflict + func (e *ConstraintError) Error() string + type ImportMissingError struct + Module module.Version + Path string + QueryErr error + func (e *ImportMissingError) Error() string + func (e *ImportMissingError) ImportPath() string + func (e *ImportMissingError) Unwrap() error + type ImportMissingSumError struct + func (e *ImportMissingSumError) Error() string + func (e *ImportMissingSumError) ImportPath() string + type ModuleRetractedError struct + Rationale []string + func (e *ModuleRetractedError) Error() string + func (e *ModuleRetractedError) Is(err error) bool + type NoMatchingVersionError struct + func (e *NoMatchingVersionError) Error() string + type NoPatchBaseError struct + func (e *NoPatchBaseError) Error() string + type PackageNotInModuleError struct + Mod module.Version + Pattern string + Query string + Replacement module.Version + func (e *PackageNotInModuleError) Error() string + func (e *PackageNotInModuleError) ImportPath() string + type PackageOpts struct + AllowErrors bool + AllowPackage func(ctx context.Context, path string, mod module.Version) error + LoadTests bool + ResolveMissingImports bool + SilenceErrors bool + SilenceUnmatchedWarnings bool + Tags map[string]bool + UseVendorAll bool + type QueryMatchesMainModuleError struct + Pattern string + Query string + func (e *QueryMatchesMainModuleError) Error() string + type QueryMatchesPackagesInMainModuleError struct + Packages []string + Pattern string + Query string + func (e *QueryMatchesPackagesInMainModuleError) Error() string + type QueryResult struct + Mod module.Version + Packages []string + Rev *modfetch.RevInfo + func QueryPackages(ctx context.Context, pattern, query string, current func(string) string, ...) ([]QueryResult, error) + type Root int + const AutoRoot + const NeedRoot + const NoRoot + type WildcardInFirstElementError struct + Pattern string + Query string + func (e *WildcardInFirstElementError) Error() string