appdata

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package appdata provides access to well known directories for applications.

Index

Constants

View Source
const ErrAppData = "ErrAppData"

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() (string, error)

CacheDir returns the directory where application cache files should be stored.

func ConfigDir

func ConfigDir() (string, error)

ConfigDir returns the directory where application configuration files should be stored.

func DataDir

func DataDir() (string, error)

DataDir returns the directory where application data files should be stored.

Types

type AppData

type AppData interface {
	ConfigDir() (string, error)
	DataDir() (string, error)
	CacheDir() (string, error)
}
var DefaultAppData AppData

Jump to

Keyboard shortcuts

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