feat: Package for command-line arguments

This commit is contained in:
2024-01-02 21:05:33 +00:00
parent edc6cf37cd
commit 8c39d6f40e
4 changed files with 46 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ import (
)
// ProcessSingleFile processes file and send it Result to channel
func ProcessSingleFile(rePattern regexp.Regexp, path string, out chan models.FileMatchData) {
func ProcessSingleFile(rePattern *regexp.Regexp, path string, out chan models.FileMatchData) {
file, err := os.Open(path)
if err != nil {
log.Fatal(err)