From 5dfd3ca21a9384b1465985f570b59626e328d735 Mon Sep 17 00:00:00 2001 From: harakeishi Date: Sat, 26 Feb 2022 11:17:58 +0900 Subject: [PATCH] fix --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 7fa6335..a3d57ac 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -27,7 +27,7 @@ var rootCmd = &cobra.Command{ return nil } if buildInfo, ok := debug.ReadBuildInfo(); ok { - fmt.Printf("%+v\n", buildInfo.Main) + fmt.Println(buildInfo.Main.Version) return nil } fmt.Println("unknown")