atomicfile
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package atomicfile contains code related to writing to filesystemsatomically.
This package should be considered internal; its API is not stable.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcRename¶added inv1.86.0
Rename srcFile to dstFile, similar toos.Rename but preserving fileattributes and ACLs on Windows.
funcWriteFile¶
WriteFile writes data to filename+some suffix, then renames it into filename.The perm argument is ignored on Windows, but if the target filename alreadyexists then the target file's attributes and ACLs are preserved. If the targetfilename already exists but is not a regular file, WriteFile returns an error.
Types¶
This section is empty.