Versions in this module Expand all Collapse all v1 v1.0.1 Jun 9, 2021 v1.0.0 Jun 9, 2021 Changes in this version + var ErrAlreadyLocked = errors.New("file already locked") + func Open(path string, flag int, perm os.FileMode) (*os.File, error) + type LockedFile struct + func LockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) + func TryLockedOpenFile(path string, flag int, perm os.FileMode) (*LockedFile, error) + type RLockedFile struct + func RLockedOpenFile(path string) (*RLockedFile, error) + func (r *RLockedFile) Close() (err error) + func (r *RLockedFile) IncLockRef() + func (r *RLockedFile) IsClosed() bool