Crate nanogrep

Source
Expand description

Custom simplified implementation of minigrep with additional features.

Structs§

Config
The necessary configurations for initializing nanogrep.

Functions§

run
Runs the library logic. Expects a reference to Config.
search
Returns the line(s) where the pattern is matched in the contents of the file.
summarize
Returns summary which includes total matched occurence(s) of the pattern & line respectively.