9 lines
238 B
Go
9 lines
238 B
Go
|
package filelock
|
||
|
|
||
|
// this lock does nothing
|
||
|
type Noop struct{}
|
||
|
|
||
|
func (_ *Noop) Lock() (bool, error) { return true, nil }
|
||
|
func (_ *Noop) TryLock() (bool, error) { return true, nil }
|
||
|
func (_ *Noop) Unlock() error { return nil }
|