github.com/tickstep/library-go@v0.1.1/checkaccess/check_unix.go (about) 1 // +build !windows,!plan9,!aix 2 3 package checkaccess 4 5 import ( 6 "syscall" 7 ) 8 9 func AccessRDWR(path string) bool { 10 return syscall.Access(path, syscall.O_RDWR) == nil 11 }