You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
463 B

  1. // Copyright (c) 2019 FOSS contributors of https://github.com/nxadm/tail
  2. // +build !windows
  3. package tail
  4. import (
  5. "os"
  6. )
  7. // Deprecated: this function is only useful internally and, as such,
  8. // it will be removed from the API in a future major release.
  9. //
  10. // OpenFile proxies a os.Open call for a file so it can be correctly tailed
  11. // on POSIX and non-POSIX OSes like MS Windows.
  12. func OpenFile(name string) (file *os.File, err error) {
  13. return os.Open(name)
  14. }