Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + func CleanPatterns(patterns []string) []string + func InDir(path, dir string) string + func IsMetaPackage(name string) bool + func IsRelativePath(pattern string) bool + func IsStandardImportPath(path string) bool + func MatchPattern(pattern string) func(name string) bool + func TreeCanMatchPattern(pattern string) func(name string) bool + func WarnUnmatched(matches []*Match) + type Match struct + Dirs []string + Errs []error + Pkgs []string + func ImportPaths(patterns, modRoots []string) []*Match + func ImportPathsQuiet(patterns, modRoots []string) []*Match + func NewMatch(pattern string) *Match + func (m *Match) AddError(err error) + func (m *Match) IsLiteral() bool + func (m *Match) IsLocal() bool + func (m *Match) IsMeta() bool + func (m *Match) MatchDirs(modRoots []string) + func (m *Match) MatchPackages() + func (m *Match) Pattern() string + type MatchError struct + Err error + Match *Match + func (e *MatchError) Error() string + func (e *MatchError) Unwrap() error