Help us shape the future of Go! Take the 2026 Go Developer Survey

atomicfile

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package atomicfile writes files so that a reader sees either the old file whole or the new one whole, never one half-written.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(path string, data []byte, perm os.FileMode) error

Write replaces the file at path with data, with mode perm, through a temporary file in the same directory renamed over it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL