github.com/Cooboob/tail@v1.0.1/README.md (about) 1 [![Build Status](https://travis-ci.org/Cooboob/tail.svg)](https://travis-ci.org/Cooboob/tail) 2 [![Build status](https://ci.appveyor.com/api/projects/status/vrl3paf9md0a7bgk/branch/master?svg=true)](https://ci.appveyor.com/project/Nino-K/tail/branch/master) 3 4 # Go package for tail-ing files 5 6 A Go package striving to emulate the features of the BSD `tail` program. 7 8 thanks to hpcloud 9 10 ```Go 11 t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) 12 for line := range t.Lines { 13 fmt.Println(line.Text) 14 } 15 ``` 16 17 See [API documentation](http://godoc.org/github.com/Cooboob/tail). 18 19 ## Log rotation 20 21 Tail comes with full support for truncation/move detection as it is 22 designed to work with log rotation tools. 23 24 ## Installing 25 26 go get github.com/Cooboob/tail/... 27 28 ## Windows support 29 30 This package [needs assistance](https://github.com/Cooboob/tail/labels/Windows) for full Windows support.