github.com/bir3/gocompiler@v0.9.2202/src/cmd/gocmd/internal/lockedfile/filelock/filelock.go (about)

     1  package filelock
     2  
     3  import "github.com/bir3/gocompiler/src/cmd/gocmd/internal/lockedfile/internal/filelock"
     4  
     5  // export 1
     6  type File = filelock.File
     7  
     8  func Lock(f File) error {
     9  	return filelock.Lock(f)
    10  }
    11  
    12  func RLock(f File) error {
    13  	return filelock.RLock(f)
    14  }
    15  
    16  func Unlock(f File) error {
    17  	return filelock.Unlock(f)
    18  }