Skip to content

Commit 679548f

Browse files
committed
chore: Add version to start print
1 parent 750dd3f commit 679548f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmd/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func main() {
2929
simulatorRepository := repo.NewSimulatorRepository()
3030
simulatorController := cnt.NewSimulatorController(simulatorRepository)
3131
simulatorController.GetInstance()
32-
log.Println("LWN Simulator is ready to start...")
32+
log.Printf("LWN Simulator (%s) is ready to start...\n", shared.Version)
3333
// Start the metrics server.
3434
go startMetrics(cfg)
3535
// If the autoStart flag is set to true, start the simulator automatically.

shared/shared.go

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import "log"
55
// Verbose flag
66
var Verbose bool = false
77

8+
// Version of the simulator
9+
const Version = "1.0.3"
10+
811
func DebugPrint(msg string) {
912
if Verbose {
1013
log.Printf("[DEBUG]: %s", msg)

0 commit comments

Comments
 (0)