appDir

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package appDir provides directory generators for Lominus config files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseDir

func GetBaseDir() string

GetBaseDir returns the directory where config files for Lominus will be stored in. It uses os.UserConfigDir() under the hood and appends lominus.APP_NAME to it. On Unix systems, os.UserConfigDir() returns $XDG_CONFIG_HOME as specified by https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html if non-empty, else $HOME/.config. On Darwin, it returns $HOME/Library/Application Support. On Windows, it returns %AppData%. On Plan 9, it returns $home/lib. If the location cannot be determined (for example, $HOME is not defined), then it will return an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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