github.com/nxadm/tail

[Revamped] Go package for reading from continuously updated files (tail -f)

Open this visualization on its own page →

Contributors

41

Lines of Code

1,271

From

2012-10-09

To

2020-12-24

About nxadm/tail

nxadm/tail is a Go library that provides tail functionality for reading from continuously updated files, mimicking the behavior of the Unix `tail -f` command. The package includes robust support for file truncation and move detection, making it suitable for use with log rotation tools. It works across all major operating systems supported by Go, including Linux, BSD variants, macOS, and Windows, with compatibility back to Go 1.12.

The project is an actively maintained replacement for the abandoned hpcloud/tail library. It addresses the original project's open issues and pull requests while adding new features, fixing bugs, and keeping dependencies current with modern Go tooling and modules. The library provides a straightforward API for monitoring file changes and includes example code in its repository for debugging and reference purposes.

Share this video