feat: makefile, git version number

This commit is contained in:
2026-05-01 13:14:43 +02:00
parent ed84610696
commit 73bdd959d6
2 changed files with 8 additions and 10 deletions
+4 -8
View File
@@ -19,14 +19,10 @@ import (
"greenlight.debuggingjon.dev/internal/mailer"
)
// Declare a string containing the application version number. Later in the book we'll
// generate this automatically at build time, but for now we'll just store the version
// number as a hard-coded global constant.
const version = "1.0.0"
// Create a buildTime variable to hold the executable binary build time. Note that this
// must be a string type, as the -X linker flag will only work with string variables.
var buildTime string
var (
buildTime string
version string
)
// Define a config struct to hold all the configuration settings for our application.
// For now, the only configuration settings will be the network port that we want the