filelock

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package filelock locks a file across processes, so that concurrent codebot sessions can read-modify-write shared files in the user's home.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lock

func Lock(path string) (unlock func(), err error)

Lock creates path if needed and blocks while another holder, in this process or another, has it. Process exit also releases it.

Lock a dedicated lock file, not the guarded file itself: a file replaced by rename is a new file each time.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL