tail/README.md

32 lines
504 B
Markdown
Raw Normal View History

# Go package for tail-ing files
2012-10-13 00:05:11 +08:00
A Go package striving to emulate the features of the BSD `tail` program.
2012-10-13 00:05:11 +08:00
```Go
t := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
2012-10-13 00:05:11 +08:00
for line := range t.Lines {
fmt.Println(line.Text)
}
```
2013-01-08 04:51:30 +08:00
## Installing
go get github.com/ActiveState/tail
## Building
To build and test the package,
make test
To build the toy command-line program `gotail`,
cd cmd/gotail
make
./gotail -h
2012-10-13 00:05:11 +08:00
## TODO
* Support arbitrary values for `Location`