From a0cdbddebd2b4e614f360b2220f32055d1afe7dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 8 May 2016 13:12:02 +0200 Subject: [PATCH] Remove kr/pretty dependency See https://github.com/spf13/hugo/issues/2124 See https://github.com/kr/text/issues/6 --- viper.go | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/viper.go b/viper.go index df18448..a2633b0 100644 --- a/viper.go +++ b/viper.go @@ -32,7 +32,6 @@ import ( "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 (v *Viper) findConfigFile() (string, error) { 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) }