Discover Packages
github.com/inherelab/eget
internal
util
atomicfile
package
Version:
v1.13.0
Opens a new window with list of versions in this module.
Published: Oct 8, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Package atomicfile writes whole files atomically: the payload goes into a
temp file next to the target and is then moved over it, so an interrupted
write can never leave a half-serialized store or config behind.
Replace moves source over target in one step.
WriteFile writes data to path atomically, creating parent directories.
WriteFunc lets a caller serialize into the temp file (for writers that only
accept a path or a file), then moves it over path.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.