{"modulePath":"github.com/hack-pad/hackpadfs","version":"v0.2.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pathlock\n\nPackage pathlock contains Mutex, which locks and unlocks using file paths as keys.\n\n## Types\n\n```go\ntype Mutex struct {\n\t// contains filtered or unexported fields\n}\n```\nMutex is a path-based locker. Lock a given path for exclusive access to that path.\n\n```go\nfunc New() *Mutex\n```\nNew returns a new Mutex\n\n```go\nfunc (l *Mutex) Lock(path string)\n```\nLock blocks access to 'path' until Unlock is called\n\n```go\nfunc (l *Mutex) Unlock(path string)\n```\nUnlock unblocks access to 'path'\n\n","path":"github.com/hack-pad/hackpadfs/internal/pathlock","name":"pathlock","synopsis":"Package pathlock contains Mutex, which locks and unlocks using file paths as keys.","isRedistributable":true}
