Skip to content

Releases: alexflint/go-filemutex

Version 1.3

11 Jan 14:23
d273d2a
Compare
Choose a tag to compare

Calling Close() on windows no longer fails if UnlockFileEx returns an error since the file still gets closed and locks released no matter what

Version 1.2

23 Mar 22:25
8d142ea
Compare
Choose a tag to compare

Calling Close() no longer fails on windows when the file lock was never opened (thanks @lujinda!)

Version 1.1

03 Apr 15:36
392c3ab
Compare
Choose a tag to compare

Added FileMutex.TryLock(), which immediately returns ErrAlreadyLocked if the mutex is already locked (by this process or another process). This is different from FileMutex.Lock(), which blocks until the mutex can be acquired.

Version 1.0

08 Oct 22:56
Compare
Choose a tag to compare

go-filemutex has been stable for several years. This release adds go.mod and go.sum files, bringing this package into alignment with the go module system.