Answer the question
In order to leave comments, you need to log in
How to get an exclusive lock on a file in Go in Windows?
Good day!
How to get an exclusive lock on a file in Windows?
fd := file.Fd()
err := syscall.Flock(int(fd), syscall.LOCK_EX|syscall.LOCK_NB)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question