You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

flock_iface.go 306B

1234567891011121314
  1. package flock
  2. // documentation for github.com/gofrs/flock incorrectly claims that
  3. // Flock implements sync.Locker; it does not because the Unlock method
  4. // has a return type (err).
  5. type Flocker interface {
  6. Unlock() error
  7. }
  8. type noopFlocker struct{}
  9. func (n *noopFlocker) Unlock() error {
  10. return nil
  11. }