allow the user to control the GOPATH
3 files changed
tree: a02975d38ac97249158276e8c389cbe8883586cb
  1. cmd/
  2. .gitignore
  3. LICENSE.txt
  4. Makefile
  5. README.md
  6. tail.go
  7. tail_test.go
  8. watch.go
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 test

To build the command-line program gotail,

cd cmd/gotail
make
./gotail -h

TODO

  • Support arbitrary values for Location