From 4a2f9d6d6c164de78706980c0325caf52afeb79e Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 18 Jul 2022 11:52:30 +0300 Subject: [PATCH] [#169] Unify version output Signed-off-by: Denis Kirillov --- settings.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/settings.go b/settings.go index 7a0774f..8c6a80c 100644 --- a/settings.go +++ b/settings.go @@ -3,6 +3,7 @@ package main import ( "fmt" "os" + "runtime" "sort" "strconv" "strings" @@ -168,7 +169,7 @@ func settings() *viper.Viper { os.Exit(0) case version != nil && *version: - fmt.Printf("NeoFS HTTP Gateway %s\n", Version) + fmt.Printf("NeoFS HTTP Gateway\nVersion: %s\nGoVersion: %s\n", Version, runtime.Version()) os.Exit(0) }