env

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir(appname string) string

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

func GetDataDir(appname string) string

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.

Jump to

Keyboard shortcuts

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