Documentation ¶
Index ¶
- func CacheHome() string
- func CachePath(file string) string
- func ConfigDirs() []string
- func ConfigHome() string
- func ConfigPath(file string) string
- func DataDirs() []string
- func DataHome() string
- func DataPath(file string) string
- func SetName(name string)
- func SystemConfigPaths(file string) []string
- func SystemDataPaths(file string) []string
- type App
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDirs ¶
func ConfigDirs() []string
func ConfigHome ¶
func ConfigHome() string
func ConfigPath ¶
ConfigPath determines the full path of a data file.
func SetName ¶
func SetName(name string)
SetName for the default application. Used for package-wide functions.
func SystemConfigPaths ¶
SystemConfigPaths determines system-wide possible paths for a config file.
func SystemDataPaths ¶
SystemDataPaths determines system-wide possible paths for a data file.
Types ¶
type App ¶
type App struct {
Name string
}
App is an aggregation of XDG information for a named application. Useful to propagate app configuration.
func (App) ConfigPath ¶
ConfigPath determines the full path of a data file.
func (App) SystemConfigPaths ¶
SystemConfigPaths determines system-wide possible paths for a config file.
func (App) SystemDataPaths ¶
SystemDataPaths determines system-wide possible paths for a data file.
Click to show internal directories.
Click to hide internal directories.