go-grep is a simple library for replacing grep functionality written in pure go
- This implementation can't read lines with more than 65536 symbols (this will provide error
bufio.Scanner: token too long
) because of perfomance degrading. Read more aboutMaxScanTokenSize
in bufio doc - Also this search implementation will check, if the first line of file can be UTF encoded and stop func, if it can't. See tools doc