Removed dependency on homedir.

This commit is contained in:
Sander Schobers 2021-02-11 20:35:32 +01:00
parent d42a5861d4
commit bf8c3172c3

View File

@ -2,13 +2,11 @@ package utio
import ( import (
"os" "os"
homedir "github.com/mitchellh/go-homedir"
) )
// Home gives back the home directory for the current user. // Home gives back the home directory for the current user.
func Home() (string, error) { func Home() (string, error) {
return homedir.Dir() return os.UserHomeDir()
} }
// PathExists tests if the supplied path exists. // PathExists tests if the supplied path exists.