github.com/nsqio/nsq@v1.3.0/internal/dirlock/dirlock_windows.go (about)

     1  //go:build windows
     2  // +build windows
     3  
     4  package dirlock
     5  
     6  type DirLock struct {
     7  	dir string
     8  }
     9  
    10  func New(dir string) *DirLock {
    11  	return &DirLock{
    12  		dir: dir,
    13  	}
    14  }
    15  
    16  func (l *DirLock) Lock() error {
    17  	return nil
    18  }
    19  
    20  func (l *DirLock) Unlock() error {
    21  	return nil
    22  }