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.