Help us shape the future of Go! Take the 2026 Go Developer Survey

fileevaluator

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BaseTzapIgnore = `` /* 143-byte string literal not displayed */
View Source
const BaseTzapInclude = `` /* 598-byte string literal not displayed */

Variables

This section is empty.

Functions

func ReadFilterPatternFiles

func ReadFilterPatternFiles(patternFilePath ...string) ([]string, error)

func ReadPatternString

func ReadPatternString(content string) ([]string, error)

Types

type FileEvaluator

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

func New

func New(baseDir string) (*FileEvaluator, error)

func NewWithBasePatterns

func NewWithBasePatterns() *FileEvaluator

func NewWithPatterns

func NewWithPatterns(excludePatterns []string, includePatterns []string) *FileEvaluator

func (*FileEvaluator) ShouldKeepPath

func (e *FileEvaluator) ShouldKeepPath(path string) bool

func (*FileEvaluator) ShouldTraverseDir

func (e *FileEvaluator) ShouldTraverseDir(path string) bool

Jump to

Keyboard shortcuts

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