find

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeepSearchMode    = true  //deep search mode flg
	NotDeepSearchMode = false //not deep search mode flg
	FileOnlyMode      = true  //file only mode flg
	NotFileOnlyMode   = false //not file only mode flg
)

mode flgs

Variables

This section is empty.

Functions

This section is empty.

Types

type File added in v0.5.1

type File struct {
	Info     os.FileInfo
	Path     string
	FullPath string
}

type Find added in v0.5.1

type Find struct {
	// contains filtered or unexported fields
}

Find contains search options

func New added in v0.5.2

func New(callback findCallBack, targetDir string, deepMode bool, fileOnlyMode bool) *Find

New creates a new Find

func (*Find) Run added in v0.5.2

func (f *Find) Run() error

Run starts file search

type FindFiles added in v0.5.1

type FindFiles []File

func GetFiles added in v0.6.0

func GetFiles(dir string) (FindFiles, error)

findMiddleware is middeware of find.findCallBack interface's

func (FindFiles) Len added in v0.5.1

func (fi FindFiles) Len() int

func (FindFiles) Less added in v0.5.1

func (fi FindFiles) Less(i, j int) bool

func (FindFiles) Swap added in v0.5.1

func (fi FindFiles) Swap(i, j int)

Jump to

Keyboard shortcuts

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