You signed in with another tab or window. <
8000
a class="Link--inTextBlock" href="">Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously concurrent changes to the same ini file are now prevented via sync.RWMutex.
This in-memory lock is totally sufficient for most use cases where user needs some safety checks in the same process, but I found myself in situation where I would find an actual file-lock handy.
e.g. to prevent user from opening the file in their editor and start editing the ini file while a go program (using this library) interacts with it.
I think there may be a way to implement this in a way that it doesn't break cross-platform compatibility - just have it gracefully degrade - on systems that don't support flock.
Activity
unknwon commentedon Aug 3, 2016
Seems not much resources can be found about Go flock...
Not sure how well they work cross-platform.