From f4c3014e5a9411ff41d4be6cf4d8af8bcb2e57e8 Mon Sep 17 00:00:00 2001 From: micnncim Date: Sun, 14 Jul 2019 21:57:22 +0900 Subject: [PATCH] Use os.UserHomeDir() in document --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c4d6bc5..63111201 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,6 @@ import ( "fmt" "os" - homedir "github.com/mitchellh/go-homedir" "github.com/spf13/cobra" "github.com/spf13/viper" ) @@ -239,7 +238,7 @@ func initConfig() { viper.SetConfigFile(cfgFile) } else { // Find home directory. - home, err := homedir.Dir() + home, err := os.UserHomeDir() if err != nil { fmt.Println(err) os.Exit(1)