diff --git a/internal/apps/file_others.go b/internal/apps/file_others.go deleted file mode 100644 index 73bf2fe..0000000 --- a/internal/apps/file_others.go +++ /dev/null @@ -1,17 +0,0 @@ -// +build !windows - -package apps - -import ( - "os" - "syscall" -) - -// lock file -func LockFile(fp *os.File) error { - return syscall.Flock(int(fp.Fd()), syscall.LOCK_EX|syscall.LOCK_NB) -} - -func UnlockFile(fp *os.File) error { - return syscall.Flock(int(fp.Fd()), syscall.LOCK_UN) -}