commit | 15d13d69b266ad51b086a8212c18b91f5e6ff8d4 | [log] [tgz] |
---|---|---|
author | Sridhar Ratnakumar <sridharr@activestate.com> | Wed Nov 13 01:08:20 2013 |
committer | Sridhar Ratnakumar <sridharr@activestate.com> | Wed Nov 13 01:08:20 2013 |
tree | 17e3aec4427f893b10c6ebff5b0ea7ba0c31baf3 | |
parent | 2a43643d88f9b4eca949f06af4a831ecf2c6d2b4 [diff] |
Cleanup is a more appropriate name here
A Go package striving to emulate the BSD tail
program.
t := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true}) for line := range t.Lines { fmt.Println(line.Text) }
go get github.com/ActiveState/tail
To build and test the package,
make test
To build the command-line program gotail
,
cd cmd/gotail make ./gotail -h
Location