lockfile

package
v0.0.0-...-95a312b Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLock

type FileLock struct {
	// contains filtered or unexported fields
}

文件锁

func NewFileLock

func NewFileLock(dir string) *FileLock

func (*FileLock) Lock

func (l *FileLock) Lock() error

加锁

func (*FileLock) Unlock

func (l *FileLock) Unlock() error

释放锁

Jump to

Keyboard shortcuts

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