paths

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package paths resolves conventional XDG state/config locations for relay apps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath(app, name string) string

ConfigPath returns the default per-app JSON config path. Order: $XDG_CONFIG_HOME/<app>/<name> → $HOME/.config/<app>/<name> → $TMPDIR/<app>/<name>.

func StateDir

func StateDir(app string) string

StateDir returns the default per-app state directory. Order: $XDG_STATE_HOME/<app> → $HOME/.local/state/<app> → $TMPDIR/<app>.

Types

This section is empty.

Jump to

Keyboard shortcuts

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