fix README example
This commit is contained in:
parent
835af806b3
commit
f2cd234400
|
@ -3,7 +3,7 @@
|
|||
A Go package striving to emulate the features of the BSD `tail` program.
|
||||
|
||||
```Go
|
||||
t := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
|
||||
t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
|
||||
for line := range t.Lines {
|
||||
fmt.Println(line.Text)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue