Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. for _, tailFile := range files {
  2. t, _ := tail.TailFile(tailFile, c)
  3.  
  4. // Goroutine per tailing file
  5. go func() {
  6. for line := range t.Lines { // t.Lines is a channel
  7. // Do some magic here
  8. }
  9. }()
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement