path

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	FullPath string
	Ignore   *regexp.Regexp
	Regex    *regexp.Regexp
	Glob     string
}

Match wraps a file path and the pattern being matched agasint it.

type Worker

type Worker struct {
	Queue  chan Match
	Output *output.Worker
	// contains filtered or unexported fields
}

Worker is the main path worker.

func New

func New() *Worker

New creates a new path worker. This worker will match paths against the specified options and if matched, pass them to the output worker for printing to the terminal.

func (*Worker) StartQueue

func (q *Worker) StartQueue()

StartQueue starts the path queue to process matches.

func (*Worker) StopQueue

func (q *Worker) StopQueue()

StopQueue stops the path queue.

Jump to

Keyboard shortcuts

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