github.com/2dev2/tail@v1.4.5/README.md (about) 1 [![Build Status](https://travis-ci.org/nxadm/tail.svg?branch=master)](https://travis-ci.org/nxadm/tail) 2 3 This is repo is forked from the dormant upstream repo at 4 [hpcloud](https://github.com/hpcloud/tail). This fork adds support for go 5 modules, updates the dependencies, adds features and fixes bugs. Go 1.9 is 6 the oldest compiler release supported. 7 8 # Go package for tail-ing files 9 10 A Go package striving to emulate the features of the BSD `tail` program. 11 12 ```Go 13 t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) 14 if err != nil { 15 panic(err) 16 } 17 18 for line := range t.Lines { 19 fmt.Println(line.Text) 20 } 21 ``` 22 23 See [API documentation](http://godoc.org/github.com/nxadm/tail). 24 25 ## Log rotation 26 27 Tail comes with full support for truncation/move detection as it is 28 designed to work with log rotation tools. 29 30 ## Installing 31 32 go get github.com/nxadm/tail/... 33 34 ## Windows support 35 36 This package [needs assistance](https://github.com/nxadm/tail/labels/Windows) for full Windows support.