Search code examples
gotail

How would I read a growing file in Go?


Just like the command tail -f <a growing file> ?

whenever I read a growing file, it always encounter the EOF error, and then quit.


Solution

  • I haven't experimented with it much, but there is a github repository that aims to emulate tail functionality in Go: https://github.com/ActiveState/tail