github.com/TheSilentForest/tail@v1.0.1-0.20190327153203-b5d4c85e68b5/README.md (about)

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