Go to file
Sridhar Ratnakumar 683e11c27d expose the time object to allow custom formatting
ref - http://bugs.activestate.com/show_bug.cgi?id=96009
2012-10-29 19:53:48 -07:00
cmd/gotail remove logyard references and update README 2012-10-17 11:56:54 -07:00
.gitignore remove logyard references and update README 2012-10-17 11:56:54 -07:00
Makefile remove logyard references and update README 2012-10-17 11:56:54 -07:00
README.md remove logyard references and update README 2012-10-17 11:56:54 -07:00
tail.go expose the time object to allow custom formatting 2012-10-29 19:53:48 -07:00
tail_test.go test refactoring: use struct embedding to reuse semantics 2012-10-13 13:04:50 -07:00
watch.go test: fixture workflow to make test functions concise 2012-10-13 11:44:47 -07:00

README.md

Tail implementation in Go

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)
}

Building

To build and test the package,

make setup
make test

To build the command-line program gotail,

cd cmd/gotail
make
./gotail -h

TODO

  • Support arbitrary values for Location