walker

package
v0.0.0-...-2841c97 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Walker

type Walker struct {
	Dir    string
	Glob   string
	Ignore *regexp.Regexp
	Regex  *regexp.Regexp
	Path   *path.Worker
}

Walker is the main file walker.

func New

func New(opt *cli.Options) *Walker

New creates a new file walker. This walker will find valid files and pass them to the path worker for matching against the supplied options. This walker will skip symlinks.

func (*Walker) Walk

func (w *Walker) Walk() error

Walk starts walking through the directory specified in the options and starts passing valid files to the path worker.

Jump to

Keyboard shortcuts

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