feat: Package for command-line arguments
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user