Go to file
Sridhar Ratnakumar 989b0425dc remove logyard references and update README
also fix local gopath
2012-10-17 11:56:54 -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 MaxLineSize now splits longer lines without discarding the rest 2012-10-13 12:50:27 -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