include go version
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-23 10:06:14 +11:00
parent 5b87ef0d30
commit 840b9f4863
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ Build Date: `{BUILDTIME}`
Build Hash: `{SHA1VER}`
Go version: `{RUNTIME}`
Written by Nathan Coad (nathan.coad@dell.com)
## Overview

View File

@@ -11,6 +11,7 @@ import (
"net/http"
"os"
"os/signal"
"runtime"
"smt/controllers"
"smt/middlewares"
"smt/models"
@@ -100,6 +101,7 @@ func main() {
// These replacements are for the embedded html generated from README.md
replacements["{SHA1VER}"] = sha1ver
replacements["{BUILDTIME}"] = buildTime
replacements["{RUNTIME}"] = runtime.Version()
// Load data from environment file
envFilename := utils.GetFilePath(".env")
@@ -121,7 +123,7 @@ func main() {
}
log.SetOutput(logfileWriter)
log.Printf("SMT starting execution. Built on %s from sha1 %s\n", buildTime, sha1ver)
log.Printf("SMT starting execution. Built on %s from sha1 %s. Runtime %s\n", buildTime, sha1ver, runtime.Version())
/*
// for debugging, list all the files that we embedded at compile time