9708301eba19ead120396b87163e91628b403c1c
AtomicWriteFile writes to a temporary file in the same directory, flushes it, sets the mode and renames it over the target, so a reader never sees a half-written file and a failure leaves the old one untouched. Comes with a doc comment and table-driven tests. (closes #17) Model: opus-5
sneak/goutil
This is a bunch of little general-purpose go utility functions that I don't feel comfortable including as-is in my normal projects as they are too general, so I put them here.
Suggestions are welcome.
Really I think most of these should probably be in the stdlib.
License
WTFPL (free software, no restrictions)
Author
Languages
Go
99.9%