type Lock struct { // contains filtered or unexported fields }
func New(name string) *Lock
New takes a path and creates a new instance of Lock. It should only be given a relative or absolute filepath.
func (l *Lock) Lock(ctx context.Context) (reterr error)
func (l *Lock) Unlock()