From 2977485303d0b90dc22f015e37dfb444a06e3ed8 Mon Sep 17 00:00:00 2001 From: Ace-Tang Date: Tue, 10 Apr 2018 14:40:28 +0800 Subject: [PATCH] bugfix: fix interface casting error not all type can be casting to string Fixes: #1083 Signed-off-by: Ace-Tang --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index b864a7246..a015c363b 100644 --- a/main.go +++ b/main.go @@ -329,7 +329,7 @@ func getConflictConfigurations(flagSet *pflag.FlagSet, fileFlags map[string]inte var conflictFlags []string flagSet.Visit(func(f *pflag.Flag) { if v, exist := fileFlags[f.Name]; exist { - conflictFlags = append(conflictFlags, fmt.Sprintf("from flag: %s and from config file: %s", f.Value.String(), v.(string))) + conflictFlags = append(conflictFlags, fmt.Sprintf("from flag: %s and from config file: %s", f.Value.String(), v)) } })