Documentation
¶
Overview ¶
Package filelock provides cross-platform file locking.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
Lock places an exclusive advisory lock on the given file. It blocks until the lock is acquired.
func TryLock ¶
TryLock places an exclusive advisory lock on the given file without waiting. It reports false and a nil error when the lock is already held through another open file (another process, or another descriptor or handle of this one).
func TryReadLock ¶
TryReadLock acquires a shared lock without waiting for a writer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.