func printInfo(title string, stamp string, commit string, buildPlatform string) {
	log.Infoln(title)
	if stamp != "" {
		log.Infoln("Build         : " + stamp)
	}
	if commit != "" {
		log.Infoln("Commit Level  : " + commit)
	}
	if buildPlatform != "" {
		log.Infoln("Build Platform: " + buildPlatform)
	}
	log.Println("")
}
Print this via the logger rather than direct to stdout so it can be
avoided if someone is using the stdout stream as the JSON input to a parser
package main
import (
	"os"
	"strings"
	"time"
	ibmmq "github.com/ibm-messaging/mq-golang/v5/ibmmq"
	mqmetric "github.com/ibm-messaging/mq-golang/v5/mqmetric"
	log "github.com/sirupsen/logrus"
)
var BuildStamp string
var GitCommit string
var BuildPlatform string
var discoverConfig mqmetric.DiscoverConfig