Go to file
Sridhar Ratnakumar 0449e85ca5 add license and copyright 2013-01-07 12:54:49 -08:00
cmd/gotail add license and copyright 2013-01-07 12:54:49 -08:00
.gitignore remove logyard references and update README 2012-10-17 11:56:54 -07:00
LICENSE.txt add license and copyright 2013-01-07 12:54:49 -08:00
Makefile remove logyard references and update README 2012-10-17 11:56:54 -07:00
README.md install instructions in README 2013-01-07 12:51:30 -08:00
tail.go add license and copyright 2013-01-07 12:54:49 -08:00
tail_test.go add license and copyright 2013-01-07 12:54:49 -08:00
watch.go add license and copyright 2013-01-07 12:54:49 -08: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)
}

Installing

go get github.com/ActiveState/tail

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