Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Query is a slice of keywords used in a database query Query []string // Results is a slice of filenames of images that match the query Results []string // IgnoreCase is a boolean flag to ignore case specifiers in keyword strings IgnoreCase = false )
View Source
var ( // WALKPATH is the path to be walked during database initialization WALKPATH string // CONFDIR is the directory where program files will be stored CONFDIR string // DBFILE is the path to the file where the keyword database is stored DBFILE string // Verbose is a boolean flag toggling verbosity of *Walker functions Verbose = false )
View Source
var ErrImageNotRecognized = errors.New("file: image format unrecognized")
Functions ¶
func GWalker ¶
GWalker is an alternative to the Walker function in walker.go: it both walks the filesystem and performs the search; this is slow, but was implemented on request to run imgrep without using the preindexed database
func Grep ¶
func Grep(preindex bool)
Grep performs the actual search by matching keywords in the database or by walking the filesystem (no-preindex) and checking each file
func InitFromPath ¶
InitFromPath initializes the keyword database by walking the directory tree and subsequently processing images.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.