tail_windows.go 191 B

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