env

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() string

GetConfigDir returns the configuration directory path. If configDir is set (for testing), it returns that value. Otherwise, it returns the platform-specific default path:

  • Unix: ~/.config/kairo
  • Windows: %APPDATA%\kairo (AppData\Roaming\kairo)

This function is thread-safe and can be called concurrently.

func SetConfigDir added in v1.5.0

func SetConfigDir(dir string)

SetConfigDir sets the configuration directory path. This is primarily used for testing to override the default location.

This function is thread-safe and can be called concurrently.

Types

This section is empty.

Jump to

Keyboard shortcuts

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