joelanford / goscan

A simple tool to scan text, binary, and archive files for keywords
MIT License
2 stars 2 forks source link

Somewhat major refactor; all functionality should still be in place #4

Closed joelanford closed 7 years ago

joelanford commented 7 years ago

This commit removes the Filescanner struct implementation, which coupled unarchival of files with the scanning of them, leaving in place only Keywords. Now, main.go invokes several different goroutines, each with different concerns:

It takes the result of the final goroutine and outputs "hits" per-file basis, and write them to the output as they arrive.