Documentation
¶
Overview ¶
Package collect provides functionality to collect file paths for processing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPath ¶
type IPath interface {
Kind() kind.Kind
SetKind(kind kind.Kind)
Val() string
SetVal(val string)
Err() error
SetErr(err error)
}
IPath provides an interface for Paths collected by IPathCollectors.
type IPathCollector ¶
IPathCollector provides an interface for PathCollectors, which collect paths to be processed downstream.
func NewPathCollector ¶
func NewPathCollector( kind kind.Kind, baseDir string, defaultPathVals []string, manualPathVals []string, globVals []string, recursive bool, ) (IPathCollector, error)
NewPathCollector returns an IPathCollector after validating its fields. If recursive is true, defaultPathVals must be defined so the collector knows which files to collect as it recurs.
Click to show internal directories.
Click to hide internal directories.