Go package safefile implements safe "atomic" saving of files