Help us shape the future of Go! Take the 2026 Go Developer Survey

processlock

package
v1.7.20 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyFilePath = errors.New("empty file path")
	ErrInvalidFile   = errors.New("invalid File pointer")
)

ErrInvalidFile represents invalid file pointer

View Source
var ErrMockFileLock = errors.New("mock filelock error")

ErrMockFileLock - mock filelock error

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Lock() error
	Unlock() error
}

func NewFileLock

func NewFileLock(fileAbsPath string) (Interface, error)

func NewMockFileLock

func NewMockFileLock(fail bool) Interface

Jump to

Keyboard shortcuts

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