xpath

package
v0.0.0-...-88c7ecd Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGlobMatched

func IsGlobMatched(pattern string, value string) bool

Types

type FileScanner

type FileScanner struct {
}

func NewFileScanner

func NewFileScanner() *FileScanner

func (*FileScanner) Scan

func (s *FileScanner) Scan(scanDirectory string, fn func(path string, isDir bool) error) error

type Helper

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

func NewHelper

func NewHelper(
	projectDirectory arch.PathAbsolute,
	fileScanner fileScanner,
	matcherRelative typeMatcher,
	matcherAbsolute typeMatcher,
	matcherGlobRelative typeMatcher,
	matcherGlobAbsolute typeMatcher,
) *Helper

func (*Helper) FindProjectFiles

func (h *Helper) FindProjectFiles(query arch.FileQuery) ([]arch.PathDescriptor, error)

type MatcherAbsolute

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

func NewMatcherAbsolute

func NewMatcherAbsolute(
	matcherRelative typeMatcher,
) *MatcherAbsolute

type MatcherRelative

type MatcherRelative struct {
}

func NewMatcherRelative

func NewMatcherRelative() *MatcherRelative

type MatcherRelativeGlob

type MatcherRelativeGlob struct{}

func NewMatcherRelativeGlob

func NewMatcherRelativeGlob() *MatcherRelativeGlob

Jump to

Keyboard shortcuts

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