Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func Acquire(ctx context.Context, path string) (func(), error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Acquire ¶ func Acquire(ctx context.Context, path string) (func(), error) Acquire uses an owner-tagged directory as a portable cross-process lock. A stale lock is removed only when its contents have the exact shape created by this package; unknown files are never deleted automatically. Types ¶ This section is empty. Source Files ¶ View all Source files filelock.goprocess_unix.go Click to show internal directories. Click to hide internal directories.