github.com/BGrewell/tail@v1.0.1-0.20210309152823-689d25348e0e/tail_windows.go (about)

     1  // +build windows
     2  
     3  package tail
     4  
     5  import (
     6  	"github.com/hpcloud/tail/winfile"
     7  	"os"
     8  )
     9  
    10  func OpenFile(name string) (file *os.File, err error) {
    11  	return winfile.OpenFile(name, os.O_RDONLY, 0)
    12  }