pathutil

package
Version: v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pathutil implements helpers to retrieve config/cache/var directories.

Follow XDG Base Directory Specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

CacheDir return current user cache directory following XDG Base Directory Specification http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html These environment variable are checked in this order: - $BLOBSTASH_CACHE_DIR - $XDG_CACHE_HOME And will fallback to: - $HOME/.cache/

func ConfigDir

func ConfigDir() string

ConfigDir find the best config directory following XDG Base Directory Specification http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html These environment variable are checked in this order: - $BLOBSTASH_CONFIG_DIR - $XDG_CONFIG_HOME And will fallback to: - $HOME/.config/

func VarDir

func VarDir() string

VarDir find the best var directory These environment variable are checked in this order: - $BLOBSTASH_CONFIG_DIR And will fallback to: - $HOME/var/

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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