check a line whether should bu skip, according to prefix
(line string, sy []string)
| 730 | |
| 731 | // check a line whether should bu skip, according to prefix |
| 732 | func skipLine(line string, sy []string) bool { |
| 733 | for _, sy := range sy { |
| 734 | if strings.HasPrefix(line, sy) { |
| 735 | return true |
| 736 | } |
| 737 | |
| 738 | } |
| 739 | return false |
| 740 | } |
| 741 | |
| 742 | // get suitable scanner(compressed or not) |
| 743 | func getFileScanner(fn string) (*bufio.Scanner, error) { |
no outgoing calls