MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / skipLine

Function skipLine

io.go:732–740  ·  view source on GitHub ↗

check a line whether should bu skip, according to prefix

(line string, sy []string)

Source from the content-addressed store, hash-verified

730
731// check a line whether should bu skip, according to prefix
732func 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)
743func getFileScanner(fn string) (*bufio.Scanner, error) {

Callers 5

loadFileToBufferAsyncFunction · 0.85
loadFileToBufferFunction · 0.85
loadPipeToBufferAsyncFunction · 0.85
loadPipeToBufferFunction · 0.85
Test_skipLineFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_skipLineFunction · 0.68