suClick
suClick

Reputation: 996

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.

Upvotes: 2

Views: 3137

Answers (2)

Verran
Verran

Reputation: 4082

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

Upvotes: 6

brak2718
brak2718

Reputation: 84

Find the answer as if you're programming in C on Linux, then use the same/analogous options to the equivalent 'open' system call.

Upvotes: 0

Related Questions