Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcludeFiles ¶ added in v0.92.0
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
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" )
Click to show internal directories.
Click to hide internal directories.