Rename on Close Simple way to create a temporary file and rename on close, with optional sync. The common way to atomic update files in unix. Simple command is in: cmd/cpmv Docs: https://godoc.org/github.com/james-antill/rename-on-close