Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLocked indicates the lock is already held by another process. ErrLocked = errors.New("lock already held") // ErrUnsupported indicates file locking is not supported on this platform. ErrUnsupported = errors.New("file locking unsupported") )
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
func AcquireShared ¶
AcquireShared attempts to take a shared (read) lock on an existing lock file. It never creates or writes to the lock file.
Click to show internal directories.
Click to hide internal directories.