finder

package
v0.0.0-...-12b5c8c Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Filters = struct {
	MinSize      filterByInt64
	IncludeRegex filterByString
	ExcludeRegex filterByString
}{
	MinSize:      func(size int64) Filter { return minSizeFilter{size} },
	IncludeRegex: func(regex string) Filter { return newRegexFilter(regex, false) },
	ExcludeRegex: func(regex string) Filter { return newRegexFilter(regex, true) },
}

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Accept(path string, info os.FileInfo) bool
}

type Finder

type Finder interface {
	Find(basedir string) <-chan string
}

func NewFinder

func NewFinder(filters ...Filter) Finder

Jump to

Keyboard shortcuts

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