Documentation ¶
Index ¶
- func ForEach(dir string, cb func(*File) bool, opts ...Option)
- func ForEachContext(ctx context.Context, dir string, cb func(*File) bool, opts ...Option)
- func Walk(dir string, opts ...Option) <-chan *File
- func WalkContext(ctx context.Context, dir string, opts ...Option) <-chan *File
- type Checksum
- type File
- type HashList
- type Option
- func AddGitIgnores(dir string) Option
- func AllowListExtensions(extensions ...string) Option
- func ExcludeDirectory(patterns ...string) Option
- func ExcludeDirectoryRegex(patterns ...string) Option
- func ExcludeFilename(patterns ...string) Option
- func ExcludeFilenameRegex(patterns ...string) Option
- func ExcludeListExtensions(extensions ...string) Option
- func IgnoreArtifacts() Option
- func IgnoreGitIgnore() Option
- func IgnoreIgnoreFile() Option
- func IncludeDirectory(patterns ...string) Option
- func IncludeDirectoryRegex(patterns ...string) Option
- func IncludeFilename(patterns ...string) Option
- func IncludeFilenameRegex(patterns ...string) Option
- func IncludeHidden() Option
- func LocationExcludePattern(patterns ...string) Option
- type Walker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEachContext ¶
Types ¶
type File ¶
type File = gocodewalker.File
type HashList ¶
type HashList struct { HashMap map[string]Checksum StableList []string // contains filtered or unexported fields }
func ReduceToHash ¶
type Option ¶
type Option = func(*Walker)
func AddGitIgnores ¶ added in v0.2.2
func AllowListExtensions ¶
func ExcludeDirectory ¶
func ExcludeDirectoryRegex ¶
func ExcludeFilename ¶
func ExcludeFilenameRegex ¶
func ExcludeListExtensions ¶
func IgnoreArtifacts ¶
func IgnoreArtifacts() Option
func IgnoreGitIgnore ¶
func IgnoreGitIgnore() Option
func IgnoreIgnoreFile ¶
func IgnoreIgnoreFile() Option
func IncludeDirectory ¶
func IncludeDirectoryRegex ¶
func IncludeFilename ¶
func IncludeFilenameRegex ¶
func IncludeHidden ¶
func IncludeHidden() Option
func LocationExcludePattern ¶
type Walker ¶
type Walker = gocodewalker.FileWalker
Click to show internal directories.
Click to hide internal directories.