()
| 381 | } |
| 382 | |
| 383 | func (tail *Tail) openReader() { |
| 384 | if tail.MaxLineSize > 0 { |
| 385 | // add 2 to account for newline characters |
| 386 | tail.reader = bufio.NewReaderSize(tail.file, tail.MaxLineSize+2) |
| 387 | } else { |
| 388 | tail.reader = bufio.NewReader(tail.file) |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | func (tail *Tail) seekEnd() error { |
| 393 | return tail.seekTo(SeekInfo{Offset: 0, Whence: os.SEEK_END}) |
no outgoing calls
no test coverage detected