gofrs / flock

Thread-safe file locking library in Go
https://pkg.go.dev/github.com/gofrs/flock
BSD 3-Clause "New" or "Revised" License
578 stars 66 forks source link

initial attempt at file locking in Go #1

Closed theckman closed 9 years ago

theckman commented 9 years ago

This is the initial commit of package flock, which provides a sync.Locker interface to file locking with the addition of a non-blocking TryLock() function.

The API documentation should be fairly filled-out, with an example provided in flock_example_test.go for the GoDoc documentation.