Versions in this module Expand all Collapse all v1 v1.1.0 Apr 20, 2019 v1.0.0 Apr 28, 2016 Changes in this version + var DefaultLogger = log.New(os.Stderr, "", log.LstdFlags) + var DiscardingLogger = log.New(ioutil.Discard, "", 0) + var ErrStop = fmt.Errorf("tail should now stop") + func OpenFile(name string) (file *os.File, err error) — darwin/amd64, linux/amd64, windows/amd64 + type Config struct + Follow bool + Location *SeekInfo + Logger logger + MaxLineSize int + MustExist bool + Pipe bool + Poll bool + RateLimiter *ratelimiter.LeakyBucket + ReOpen bool + type Line struct + Err error + Text string + Time time.Time + func NewLine(text string) *Line + type SeekInfo struct + Offset int64 + Whence int + type Tail struct + Filename string + Lines chan *Line + func TailFile(filename string, config Config) (*Tail, error) + func (tail *Tail) Cleanup() + func (tail *Tail) Stop() error + func (tail *Tail) StopAtEOF() error + func (tail *Tail) Tell() (offset int64, err error)