title: How do I exclusively lock a file on Windows?
body: <p>I want to lock file exclusively on Windows environment, but <code>syscall.Flock</code> isn't supported by Windows.
  Is there any way to implement it?</p>
  
  <p>I tried <a href="http://ikarishinjieva.github.io/tachikoma-blog/post/2014-03-20-go-file-lock/" rel="nofollow">this article</a>'s method however it doesn't work (<code>syscall.Syscall6</code> raises "Access is denied." error).</p>