Remove kr/pretty dependency
See https://github.com/spf13/hugo/issues/2124
See https://github.com/kr/text/issues/6
diff --git a/viper.go b/viper.go
index df18448..a2633b0 100644
--- a/viper.go
+++ b/viper.go
@@ -32,7 +32,6 @@
"time"
"github.com/fsnotify/fsnotify"
- "github.com/kr/pretty"
"github.com/mitchellh/mapstructure"
"github.com/spf13/cast"
jww "github.com/spf13/jwalterweatherman"
@@ -1284,17 +1283,11 @@
func Debug() { v.Debug() }
func (v *Viper) Debug() {
fmt.Println("Aliases:")
- pretty.Println(v.aliases)
- fmt.Println("Override:")
- pretty.Println(v.override)
- fmt.Println("PFlags")
- pretty.Println(v.pflags)
- fmt.Println("Env:")
- pretty.Println(v.env)
- fmt.Println("Key/Value Store:")
- pretty.Println(v.kvstore)
- fmt.Println("Config:")
- pretty.Println(v.config)
- fmt.Println("Defaults:")
- pretty.Println(v.defaults)
+ fmt.Printf("Aliases:\n%#v\n", v.aliases)
+ fmt.Printf("Override:\n%#v\n", v.override)
+ fmt.Printf("PFlags:\n%#v\n", v.pflags)
+ fmt.Printf("Env:\n%#v\n", v.env)
+ fmt.Printf("Key/Value Store:\n%#v\n", v.kvstore)
+ fmt.Printf("Config:\n%#v\n", v.config)
+ fmt.Printf("Defaults:\n%#v\n", v.defaults)
}