Documentation
¶
Index ¶
- func AppCache(appName string) (string, error)
- func AppConfig(appName string) (string, error)
- func AppData(appName string) (string, error)
- func AppState(appName string) (string, error)
- func CacheHome() (string, error)
- func ConfigHome() (string, error)
- func DataHome() (string, error)
- func StateHome() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppConfig ¶
AppConfig returns ConfigHome()/<appName>. Creates the directory if it doesn't exist.
func CacheHome ¶
CacheHome returns the base cache directory.
- Linux: $XDG_CACHE_HOME or $HOME/.cache
- macOS: $HOME/Library/Caches
func ConfigHome ¶
ConfigHome returns the base config directory.
- Linux: $XDG_CONFIG_HOME or $HOME/.config
- macOS: $HOME/Library/Application Support
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.