find

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 7 Imported by: 1

README

go-find

Unix like find utility for golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Found

type Found struct {
	Path string
	Info os.FileInfo
}

func Find

func Find(dir string, opts Options) ([]Found, error)

type Options added in v0.4.0

type Options struct {
	Recursive bool

	StopAtFirstMatch bool
	RegularFilesOnly bool
	DirectoriesOnly  bool
	MatchRegex       *regexp.Regexp
	MatchExtension   string

	// Sort newest to oldest
	SortByRecentModTime bool

	// Sort oldest to newest
	ReverseSortByRecentModTime bool
}

Jump to

Keyboard shortcuts

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