pathutil

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicWrite

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

AtomicWrite writes data to path using write-to-temp + rename. Cleans up any prior crash orphan at the temp path.

func ExpandAndResolve

func ExpandAndResolve(raw string) (string, error)

ExpandAndResolve expands ~/ and resolves to an absolute path.

func ExpandHome

func ExpandHome(raw string) (string, error)

ExpandHome replaces a leading ~/ with the user's home directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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