match

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	Paths  set.Set[string]
	InclRE *regexp.Regexp
	ExclRE *regexp.Regexp
	Module string
	Stdlib bool
}

func (*Matcher) Match

func (m *Matcher) Match(pkg string) bool

func (*Matcher) MatchUnlessExcludedStdLibPackage

func (m *Matcher) MatchUnlessExcludedStdLibPackage(pkg string) bool

func (*Matcher) MustRel added in v0.2.0

func (m *Matcher) MustRel(pkg string) string

func (*Matcher) Rel

func (m *Matcher) Rel(pkg string) (string, error)

func (*Matcher) Resolve

func (m *Matcher) Resolve(pkg string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL