Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func LockFile(file *os.File) error type Lock func NewLock(lockfile, payload string) (*Lock, error) func (l *Lock) Lock(payload string) error func (l *Lock) Payload() (string, error) func (l *Lock) UnLock() (erra error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LockFile ¶ func LockFile(file *os.File) error Types ¶ type Lock ¶ type Lock struct { // contains filtered or unexported fields } func NewLock ¶ func NewLock(lockfile, payload string) (*Lock, error) func (*Lock) Lock ¶ func (l *Lock) Lock(payload string) error func (*Lock) Payload ¶ func (l *Lock) Payload() (string, error) func (*Lock) UnLock ¶ func (l *Lock) UnLock() (erra error) Source Files ¶ View all Source files lockfile.go lockfile_other.go Click to show internal directories. Click to hide internal directories.