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