hpcloud / tail

Go package for reading from continously updated files (tail -f)
MIT License
2.7k stars 502 forks source link

how to close tails goroutine #179

Open Linuxlovers opened 3 years ago

Linuxlovers commented 3 years ago

goroutine 889 2020/11/17 09:13:00 Seeked /opt/6938e171-7ffd-49f8-8e62-c2daa1c8d63c/1.1.4/log.txt - &{Offset:0 Whence:2} 2020/11/17 09:13:00 Seeked /opt/acf8de17-6e26-4dda-b185-67e4070f3bf8/1.1.3/log.txt - &{Offset:0 Whence:2} goroutine 894 goroutine 894

i use it to watch an log ,but it aways add goroutine numbers ,how to work out it ?

sdddean commented 3 years ago

try t.Stop()