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

Stutter in flock.NewLock #25

Closed egonelbre closed 6 years ago

egonelbre commented 6 years ago

Issue for deciding whether changing flock.NewLock -> flock.New, is worth the compatibility change.

theckman commented 6 years ago

/cc @gofrs/all -- I'd love feedback on this from you.

leighmcculloch commented 6 years ago

I don't think it's a meaningful enough change to warrant breaking the API for.

dylan-bourque commented 6 years ago

Add flock.New() now with a release note and deprecate flock.NewLock() later