Removed dependency on homedir.
This commit is contained in:
parent
d42a5861d4
commit
bf8c3172c3
@ -2,13 +2,11 @@ package utio
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
homedir "github.com/mitchellh/go-homedir"
|
||||
)
|
||||
|
||||
// Home gives back the home directory for the current user.
|
||||
func Home() (string, error) {
|
||||
return homedir.Dir()
|
||||
return os.UserHomeDir()
|
||||
}
|
||||
|
||||
// PathExists tests if the supplied path exists.
|
||||
|
Loading…
Reference in New Issue
Block a user