MCPcopy Create free account
hub / github.com/hpcloud/tail / openReader

Method openReader

tail.go:383–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381}
382
383func (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
392func (tail *Tail) seekEnd() error {
393 return tail.seekTo(SeekInfo{Offset: 0, Whence: os.SEEK_END})

Callers 2

tailFileSyncMethod · 0.95
waitForChangesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected