func Funlock(path string) error {
	err := fcntlFlock(syscall.F_UNLCK)
	if err != nil {
		return err
	} else {
		return lockFile.Close()
	}
}
Unlock the file.
package flock
import (
	"os"
	"syscall"
)
var lockFile *os.File
func Flock(path string) error {
	return fcntlFlock(syscall.F_WRLCK, path)
}