commit | de037b033d3f1ae1c39cd67b817c417df189577a | [log] [tgz] |
---|---|---|
author | Sridhar Ratnakumar <sridharr@activestate.com> | Mon Jan 07 20:56:25 2013 |
committer | Sridhar Ratnakumar <sridharr@activestate.com> | Mon Jan 07 20:56:25 2013 |
tree | a02975d38ac97249158276e8c389cbe8883586cb | |
parent | 0449e85ca5aeab99928c3729c657aaa403fb784b [diff] |
allow the user to control the GOPATH
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