[#169] Unify version output

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-07-18 11:52:30 +03:00 committed by Alex Vanin
parent 99eb87bec7
commit 4a2f9d6d6c

View file

@ -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)
}