Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomicWriteFile ¶
func AtomicWriteFile(path string, data []byte, opts AtomicWriteOptions) error
Types ¶
type AtomicWriteOptions ¶
type FileLock ¶ added in v2.3.0
type FileLock struct {
// contains filtered or unexported fields
}
FileLock holds an exclusive advisory lock on a sibling .lock file.
func LockSiblingFile ¶ added in v2.3.0
LockSiblingFile acquires an exclusive advisory lock on the sibling file <path>.lock. The returned closer must be released by the caller.
Click to show internal directories.
Click to hide internal directories.