github.com/Cooboob/tail@v1.0.1/tail_windows.go (about) 1 // +build windows 2 3 package tail 4 5 import ( 6 "github.com/Cooboob/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 }