package version

import (
	"strings"

	"github.com/sirupsen/logrus"
)

var (
	// Version contains application version
	Version string
	// BuildTime contains application build time
	BuildTime string
	// GoVersion contains the golang version uses to build this binary
	GoVersion string
)

// Show displays various version information
func Show() {
	logrus.Infof("")
	logrus.Infof("Version:\t%s", Version)
	logrus.Infof("%s", strings.ReplaceAll(GoVersion, "go version go", "Golang     :\t"))
	logrus.Infof("Build Time :\t%s", BuildTime)
	logrus.Infof("")
}
