13 lines
195 B
Go
13 lines
195 B
Go
|
// +build windows
|
||
|
|
||
|
package tail
|
||
|
|
||
|
import (
|
||
|
"github.com/ActiveState/tail/winfile"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func OpenFile(name string) (file *os.File, err error) {
|
||
|
return winfile.OpenFile(name, os.O_RDONLY, 0)
|
||
|
}
|