()
| 63 | } |
| 64 | |
| 65 | func (lv *LogView) FirstLinePtr() (*LinePtr, error) { |
| 66 | linePtr := &LinePtr{Offset: 0, RealLineNum: 1, LineNum: 1} |
| 67 | if lv.isLineMatch(0) { |
| 68 | return linePtr, nil |
| 69 | } |
| 70 | return lv.NextLinePtr(linePtr) |
| 71 | } |
| 72 | |
| 73 | func (lv *LogView) isLineMatch(offset int64) bool { |
| 74 | if lv.MatchRe == nil { |
no test coverage detected