Documentation ¶
Overview ¶
Package xdg impelements the XDG standard for application file locations.
Index ¶
- func CacheHome() string
- func ConfigDirs() []string
- func ConfigHome() string
- func DataDirs() []string
- func DataHome() string
- type XDG
- func (x *XDG) CacheHome() string
- func (x *XDG) ConfigDirs() []string
- func (x *XDG) ConfigHome() string
- func (x *XDG) DataDirs() []string
- func (x *XDG) DataHome() string
- func (x *XDG) QueryCache(filename string) string
- func (x *XDG) QueryConfig(filename string) string
- func (x *XDG) QueryData(filename string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheHome ¶
func CacheHome() string
CacheHome returns the location that should be used for application cache files
func ConfigDirs ¶
func ConfigDirs() []string
ConfigDirs returns a list of locations that should be used for system wide config files
func ConfigHome ¶
func ConfigHome() string
ConfigHome returns the location that should be used for user specific config files
Types ¶
type XDG ¶
XDG is information about the currently running application
func (*XDG) CacheHome ¶
CacheHome returns the location that should be used for application cache files for this specific application
func (*XDG) ConfigDirs ¶
ConfigDirs returns a list of locations that should be used for system wide config files for this specific application
func (*XDG) ConfigHome ¶
ConfigHome returns the location that should be used for user specific config files for this specific application
func (*XDG) DataDirs ¶
DataDirs returns a list of locations that should be used for system wide data files for this specific application
func (*XDG) DataHome ¶
DataHome returns the location that should be used for user specific data files for this specific application
func (*XDG) QueryCache ¶
QueryCache looks for the given filename in XDG paths for cache files. Returns an empty string if one was not found.
func (*XDG) QueryConfig ¶
QueryConfig looks for the given filename in XDG paths for config files. Returns an empty string if one was not found.