github.com/Ptt-official-app/go-bbs@v0.12.0/filelock/filelock.go (about)

     1  package filelock
     2  
     3  type File interface{}
     4  
     5  func Lock(f File) error {
     6  	return nil
     7  }
     8  
     9  func RLock(f File) error {
    10  	return nil
    11  }
    12  
    13  func IsLock(f File) bool {
    14  	// TODO: Need to complete this function, it's just return false now.
    15  	return false
    16  }
    17  
    18  func Unlock(f File) error {
    19  	return nil
    20  }