xdg

package
v1.201.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetXDGCacheDir

func GetXDGCacheDir(subpath string, perm os.FileMode) (string, error)

GetXDGCacheDir returns the Atmos cache directory following XDG Base Directory Specification. It respects ATMOS_XDG_CACHE_HOME and XDG_CACHE_HOME environment variables. The directory is created if it doesn't exist.

func GetXDGConfigDir

func GetXDGConfigDir(subpath string, perm os.FileMode) (string, error)

GetXDGConfigDir returns the Atmos config directory following XDG Base Directory Specification. It respects ATMOS_XDG_CONFIG_HOME and XDG_CONFIG_HOME environment variables. The directory is created if it doesn't exist.

func GetXDGDataDir

func GetXDGDataDir(subpath string, perm os.FileMode) (string, error)

GetXDGDataDir returns the Atmos data directory following XDG Base Directory Specification. It respects ATMOS_XDG_DATA_HOME and XDG_DATA_HOME environment variables. The directory is created if it doesn't exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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