選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }