From a9aafa1711b925a590fcb7c79fe05ef27e84bf3b Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Wed, 21 Jun 2023 12:36:15 +0800 Subject: [PATCH] chore: use fmt.Printf instead of fmt.Println(fmt.Sprintf(...)) --- cmd/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/version.go b/cmd/version.go index 10005a35b..d317b34d9 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -56,7 +56,7 @@ var versionCmd = &cobra.Command{ if short { fmt.Println(clientVersion.GitVersion) } else { - fmt.Println(fmt.Sprintf("%#v", clientVersion)) + fmt.Printf("%#v\n", clientVersion) } case "yaml": marshalled, err := yaml.Marshal(&versionInfo)