fpath

package
v0.175.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeFiles added in v0.92.0

func ExcludeFiles(testFiles, excludedList []string) []string

ExcludeFiles returns file list which excluding given excluded file list

func FindFiles added in v0.86.0

func FindFiles(rootDir string, sources []string, matchBy MatchPattern) ([]string, error)

FindFiles returns a list of files as identified by the sources. Source pattern interpretation (e.g. regex or glob) is controlled by matchBy.

func MatchFiles added in v0.95.0

func MatchFiles(files []string, match []string) []string

MatchFiles returns matched file by specified pattern

Types

type MatchPattern added in v0.86.0

type MatchPattern string
const (
	FindByRegex        MatchPattern = "regex"
	FindByShellPattern MatchPattern = "shellpattern"
)

Jump to

Keyboard shortcuts

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