podman/vendor/github.com/nxadm/tail
Valentin Rothberg 175fc3867a Revert "ginkgo: install on demand via `go get -u`"
This reverts commit de05e58168.

Running `go get -u` will change the local Go module causing CI to fail
as the local git tree is being changed.  Reverting the change for now
until we have a better idea.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-01-20 10:31:24 +01:00
..
ratelimiter Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
util Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
watch Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
winfile Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
.gitignore Revert "ginkgo: install on demand via `go get -u`" 2021-01-20 10:31:24 +01:00
.travis.yml Revert "ginkgo: install on demand via `go get -u`" 2021-01-20 10:31:24 +01:00
CHANGES.md Revert "ginkgo: install on demand via `go get -u`" 2021-01-20 10:31:24 +01:00
Dockerfile Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
LICENSE Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
README.md Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
appveyor.yml Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
go.mod Revert "ginkgo: install on demand via `go get -u`" 2021-01-20 10:31:24 +01:00
go.sum Revert "ginkgo: install on demand via `go get -u`" 2021-01-20 10:31:24 +01:00
tail.go Revert "ginkgo: install on demand via `go get -u`" 2021-01-20 10:31:24 +01:00
tail_posix.go Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00
tail_windows.go Bump github.com/onsi/gomega from 1.10.0 to 1.10.1 2020-05-21 07:35:42 -04:00

README.md

Build Status

This is repo is forked from the dormant upstream repo at hpcloud. This fork adds support for go modules, updates the dependencies, adds features and fixes bugs. Go 1.9 is the oldest compiler release supported.

Go package for tail-ing files

A Go package striving to emulate the features of the BSD tail program.

t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
if err != nil {
    panic(err)
}

for line := range t.Lines {
    fmt.Println(line.Text)
}

See API documentation.

Log rotation

Tail comes with full support for truncation/move detection as it is designed to work with log rotation tools.

Installing

go get github.com/nxadm/tail/...

Windows support

This package needs assistance for full Windows support.