fs

package
v0.6.0-20a Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fs holds filesystem helpers shared across packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFileAtomic

func WriteFileAtomic(path string, content []byte, mode os.FileMode) error

WriteFileAtomic writes content to path via a sibling `.<basename>.tmp` file: write, fsync, rename into place, fsync the parent directory so the rename survives a crash. The parent directory must already exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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