directory
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Dec 27, 2025
License: MIT
Opens a new window with license information.
README
¶
Utility Package (pkg/)
Reusable utilities with minimal dependencies.
env/
Cross-platform configuration directory resolution.
| Function |
Purpose |
GetConfigDir() |
Get platform-appropriate config directory |
| OS |
Path |
| Linux |
$XDG_CONFIG_HOME/kairo or ~/.config/kairo |
| macOS |
~/Library/Application Support/kairo |
| Windows |
%APPDATA%\kairo |
Setup
# No additional setup required
cd /path/to/kairo
go build ./pkg/...
Testing
go test ./pkg/...
Usage
import "github.com/dkmnx/kairo/pkg/env"
configDir, err := env.GetConfigDir()
if err != nil {
// Handle error
}
// Use configDir for config operations
File Permissions
All sensitive files use 0600 permissions:
config - Provider configurations (YAML)
secrets.age - Encrypted API keys
age.key - Encryption private key
Directories
¶
Click to show internal directories.
Click to hide internal directories.