Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶
GetConfigDir gets a config directory based from environmental variables + the app name
On Windows, %APPDATA%\agedit is used
On UNIX-like systems, $XDG_CONFIG_HOME/agedit is tried, if it isn't defined, $HOME/.config/agedit is used
func GetDataDir ¶
GetConfigDir gets a config directory based from environmental variables + the app name
On Windows, %LOCALAPPDATA%\agedit is used
On UNIX-like systems, $XDG_DATA_HOME/agedit is tried, if it isn't defined, $HOME/.local/share/agedit is used
func GetEditor ¶
func GetEditor() string
GetEditor gets the configured editor by checking environmental variables EDITOR and VISUAL
func GetTempDirectory ¶
func GetTempDirectory() string
GetTempDirectory returns the systems temporary directory
returns %TEMP% on Windows, /tmp on UNIX-like systems
Types ¶
This section is empty.