xdg

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package xdg resolves Critty's state and config directories following the XDG Base Directory specification on every platform, so review data lives in predictable, user-relocatable locations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppConfigHome

func AppConfigHome(app string) string

AppConfigHome returns the XDG config directory of another application, such as the global OpenCode config directory.

func ConfigHome

func ConfigHome() string

ConfigHome returns the base config directory ($XDG_CONFIG_HOME or ~/.config) with the critty application directory appended.

func StateHome

func StateHome() string

StateHome returns the base state directory ($XDG_STATE_HOME or ~/.local/state) with the critty application directory appended.

Types

This section is empty.

Jump to

Keyboard shortcuts

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