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