Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get() string
Get returns the home directory of the current user with the help of environment variables depending on the target operating system. Returned path should be used with "path/filepath" to form new paths.
If linking statically with cgo enabled against glibc, ensure the osusergo build tag is used.
If needing to do nss lookups, do not disable cgo or set osusergo.
func GetShortcutString ¶
func GetShortcutString() string
GetShortcutString returns the string that is shortcut to user's home directory in the native shell of the platform running on.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.