xdgbasedir

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

README

Simple helper functions in go to get user specific configuration/data/cache files based upon XDG Base Directory Specification at http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Documentation

Overview

Package xdgbasedir contains helper functions for data/config/cache directory and file lookup

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDirectory

func CacheDirectory() (string, error)

CacheDirectory is a single base directory relative to which user specific non-essential data files should be stored.

func ConfigHomeDirectory

func ConfigHomeDirectory() (string, error)

ConfigHomeDirectory is a single base directory relative to which user-specific config files should be written

func DataHomeDirectory

func DataHomeDirectory() (string, error)

DataHomeDirectory is a single base directory relative to which user-specific data files should be written

func GetCacheFileLocation

func GetCacheFileLocation(filename string) (string, error)

GetCacheFileLocation returns the location of the cache file

func GetConfigFileLocation

func GetConfigFileLocation(filename string) (string, error)

GetConfigFileLocation returns the location of a config file

func GetDataFileLocation

func GetDataFileLocation(filename string) (string, error)

GetDataFileLocation returns the location of a data file

Types

This section is empty.

Jump to

Keyboard shortcuts

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