|
@@ -14,7 +14,8 @@ func Key() string {
|
|
// environment variables depending on the target operating system.
|
|
// environment variables depending on the target operating system.
|
|
// Returned path should be used with "path/filepath" to form new paths.
|
|
// Returned path should be used with "path/filepath" to form new paths.
|
|
func Get() string {
|
|
func Get() string {
|
|
- return os.Getenv(Key())
|
|
|
|
|
|
+ home, _ := os.UserHomeDir()
|
|
|
|
+ return home
|
|
}
|
|
}
|
|
|
|
|
|
// GetShortcutString returns the string that is shortcut to user's home directory
|
|
// GetShortcutString returns the string that is shortcut to user's home directory
|