Hi everyone,
I've searched through packages and this mailing list and it appears to me that Go does not have any file locking mechanism? I know about the mutex locking in the sync package, but I'm writing a system with multiple go processes, and assume that sync is only good between go routines in the same process space. I've come across a situation where two of these processes need to manipulate the same files at times. So I need some kind of locking mechanism to prevent them from corrupting the file with mutual writes and so on. I'm using linux for these processes (ubuntu 11.10 32 bit right now, but I'll likely move them to fedora too).
Am I missing something or making incorrect assumptions? Or are they planned? Or is this just not a concept Go will support?
thanks,
Paul