matcher

package
v0.0.0-...-d8d7acc Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePattern

type FilePattern struct {
	Path           string
	ConstantGroups map[string]string
}

func (FilePattern) Expr

func (fp FilePattern) Expr() *regexp.Regexp

func (FilePattern) Fill

func (fp FilePattern) Fill(groupValues map[string]string) (string, error)

func (FilePattern) Find

func (fp FilePattern) Find(dir string) []string

func (FilePattern) GroupMatches

func (fp FilePattern) GroupMatches() []Group

func (FilePattern) GroupValues

func (fp FilePattern) GroupValues(filePath string) map[string]string

func (FilePattern) Match

func (fp FilePattern) Match(path string) map[string]string

func (FilePattern) String

func (fp FilePattern) String() string

type Group

type Group struct {
	// contains filtered or unexported fields
}

func (Group) IsConstant

func (g Group) IsConstant() bool

func (Group) Name

func (g Group) Name() string

func (Group) Pattern

func (g Group) Pattern() string

func (Group) String

func (g Group) String() string

func (Group) Transform

func (g Group) Transform() string

Jump to

Keyboard shortcuts

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