persist

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigFile

func DefaultConfigFile(name string) (string, error)

DefaultConfigFile returns ~/.config/dbterm/<name>.

func LoadJSON

func LoadJSON(path string, target any) error

LoadJSON loads JSON from path into target. Missing or empty files are treated as zero-value data.

func SaveJSON

func SaveJSON(path string, value any) error

SaveJSON stores value as indented JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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