configfile

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Restore

func Restore(path string, prev []byte, perm os.FileMode) error

Restore replaces path with prev. When prev is nil the file is removed.

func WriteAtomic

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

WriteAtomic writes data to path via a temp file in the same directory.

func WriteTarget

func WriteTarget(files []string) (string, error)

WriteTarget picks the local-scoped config path used for /add writes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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