github.com/wowker/tail@v0.0.0-20210121082357-fe86e3c1032a/README.md (about) 1 # Go package for tail-ing files 2 3 A Go package striving to emulate the features of the BSD `tail` program. 4 5 ```Go 6 t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) 7 for line := range t.Lines { 8 fmt.Println(line.Text) 9 } 10 ``` 11 12 ## Log rotation 13 14 Tail comes with full support for truncation/move detection as it is 15 designed to work with log rotation tools. 16 17 ## Installing 18 19 go get github.com/wowker/go-tail 20