This commit is contained in:
@@ -6,6 +6,8 @@ Build Date: `{BUILDTIME}`
|
|||||||
|
|
||||||
Build Hash: `{SHA1VER}`
|
Build Hash: `{SHA1VER}`
|
||||||
|
|
||||||
|
Go version: `{RUNTIME}`
|
||||||
|
|
||||||
Written by Nathan Coad (nathan.coad@dell.com)
|
Written by Nathan Coad (nathan.coad@dell.com)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
4
main.go
4
main.go
@@ -11,6 +11,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"runtime"
|
||||||
"smt/controllers"
|
"smt/controllers"
|
||||||
"smt/middlewares"
|
"smt/middlewares"
|
||||||
"smt/models"
|
"smt/models"
|
||||||
@@ -100,6 +101,7 @@ func main() {
|
|||||||
// These replacements are for the embedded html generated from README.md
|
// These replacements are for the embedded html generated from README.md
|
||||||
replacements["{SHA1VER}"] = sha1ver
|
replacements["{SHA1VER}"] = sha1ver
|
||||||
replacements["{BUILDTIME}"] = buildTime
|
replacements["{BUILDTIME}"] = buildTime
|
||||||
|
replacements["{RUNTIME}"] = runtime.Version()
|
||||||
|
|
||||||
// Load data from environment file
|
// Load data from environment file
|
||||||
envFilename := utils.GetFilePath(".env")
|
envFilename := utils.GetFilePath(".env")
|
||||||
@@ -121,7 +123,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.SetOutput(logfileWriter)
|
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
|
// for debugging, list all the files that we embedded at compile time
|
||||||
|
Reference in New Issue
Block a user