xdg

package
v0.124.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package xdg locates agentlab's folders the way the freedesktop XDG Base Directory specification says every program on the machine does: the configuration under $XDG_CONFIG_HOME, the state (labs, CAs, kubeconfigs) under $XDG_STATE_HOME, the cache under $XDG_CACHE_HOME and the binary in ~/.local/bin. Each variable counts only when it holds an absolute path, as the specification says; otherwise its default applies. macOS and Windows keep their own convention for configuration and cache (os.UserConfigDir, os.UserCacheDir) and put the state next to the configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinHome

func BinHome() (string, error)

BinHome is the folder of the user's own executables, where self-update installs agentlab: $XDG_BIN_HOME, ~/.local/bin by default.

func CacheHome

func CacheHome() (string, error)

CacheHome is agentlab's cache folder: $XDG_CACHE_HOME/agentlab, ~/.cache/agentlab by default (~/Library/Caches/agentlab on macOS).

func ConfigHome

func ConfigHome() (string, error)

ConfigHome is agentlab's configuration folder: $XDG_CONFIG_HOME/agentlab, ~/.config/agentlab by default (~/Library/Application Support/agentlab on macOS).

func StateHome

func StateHome() (string, error)

StateHome is agentlab's state folder: $XDG_STATE_HOME/agentlab, ~/.local/state/agentlab by default (on macOS and Windows, which have no state folder, the configuration folder's).

Types

This section is empty.

Jump to

Keyboard shortcuts

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