We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steps to repeat: Write a simple Tail client in the fashion of:
package main import ( "github.com/ActiveState/tail" "log" ) func main() { t, err := tail.TailFile("/tmp/log", tail.Config{Follow:true, ReOpen:true}) if err != nil { log.Panic(err) } for line := range t.Lines { log.Printf(line.Text) } }
Then, run the program (go run .../test.go). In another window, run echo line1 > /tmp/log and then echo line2 >> /tmp/log.
go run .../test.go
echo line1 > /tmp/log
echo line2 >> /tmp/log
Expected result: The Go program should print out two lines, line1 and line2.
Actual result: The Go program only prints out one line.
Platform: Linux maw 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Linux maw 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
I see this is working correctly now
go1.9beta2
x86_64 4.11.0-12-generic NAME="Ubuntu" VERSION="17.10 (Artful Aardvark)"
Sorry, something went wrong.
No branches or pull requests
Steps to repeat:
Write a simple Tail client in the fashion of:
Then, run the program (
go run .../test.go
). In another window, runecho line1 > /tmp/log
and thenecho line2 >> /tmp/log
.Expected result:
The Go program should print out two lines, line1 and line2.
Actual result:
The Go program only prints out one line.
Platform:
Linux maw 3.8.0-26-generic #38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: