github.com/jingwu15/tail@v1.0.2/README.md (about)

     1  # Go package for tail-ing files
     2  
     3  A Go package striving to emulate the features of the BSD `tail` program. 
     4  
     5  ```Go
     6  t, err := tail.TailFile("/var/log/nginx.log", tail.Config{Follow: true})
     7  for line := range t.Lines {
     8      fmt.Println(line.Text)
     9  }
    10  ```
    11  
    12  See [API documentation](http://godoc.org/github.com/jingwu15/tail).
    13  
    14  ## Log rotation
    15  
    16  Tail comes with full support for truncation/move detection as it is
    17  designed to work with log rotation tools.
    18  
    19  ## Installing
    20  
    21      go get github.com/jingwu15/tail/...
    22  
    23  ## Windows support
    24  
    25  This package [needs assistance](https://github.com/jingwu15/tail/labels/Windows) for full Windows support.