Go to file
Sridhar Ratnakumar 2384ff6374 avoid unnecessary inotify warning 2012-11-27 11:11:10 -08:00
cmd/gotail fix import path for the executable code 2012-11-23 12:27:28 -08: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 avoid unnecessary inotify warning 2012-11-27 11:11:10 -08: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