Versions in this module Expand all Collapse all v0 v0.1.0 May 31, 2026 Changes in this version + const DefaultFileMode + const DefaultSidecar + const O_RDWR_CREATE + var ErrBusy = errors.New("filelock: busy") + func Acquire(ctx context.Context, lockPath string, opts ...Option) (release func(), err error) + func With(ctx context.Context, lockPath string, fn func() error, opts ...Option) error + func WithSidecar(ctx context.Context, basePath, sidecar string, fn func() error, opts ...Option) error + type Option func(*config) + func Blocking() Option + func FileMode(mode os.FileMode) Option + func NonBlocking() Option + func WritePID() Option