Versions in this module Expand all Collapse all v0 v0.0.8 Feb 24, 2021 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 SetModRoot(dir string) + func TreeCanMatchPattern(pattern string) func(name string) bool + func WarnUnmatched(matches []*Match) + type Match struct + Dirs []string + Errs []error + Pkgs []string + func ImportPaths(patterns []string) []*Match + func ImportPathsQuiet(patterns []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() + 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