added get_user_home_path nethod for other OS

This commit is contained in:
vadym 2022-12-12 20:30:33 +02:00
parent 024dddf5a8
commit 6f8a9da19f

View file

@ -3,5 +3,16 @@
package main package main
import "os"
func get_user_home_path() string {
path, exists := os.LookupEnv("HOME")
if exists {
return path
} else {
return ""
}
}
func Console(show bool) { func Console(show bool) {
} }