From 064874de09dcd8221355844542bd3ce6d9669c46 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Fri, 2 Jan 2026 14:15:03 +0000 Subject: [PATCH] Template updates (commit: 24e45d7) --- config.yaml.example | 2 ++ type_webserver.go | 2 ++ version.go | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.yaml.example b/config.yaml.example index 91db3ed..2278cb1 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -1,4 +1,6 @@ --- +app_name: Go Template Container Web Server + listen: address: 0.0.0.0 port: 80 diff --git a/type_webserver.go b/type_webserver.go index 51bc643..1b88acf 100644 --- a/type_webserver.go +++ b/type_webserver.go @@ -11,6 +11,7 @@ import ( type WebServer struct { HTTPServer *http.Server + AppName string `yaml:"app_name"` Listen WSListen `yaml:"listen"` } @@ -25,6 +26,7 @@ func (s *WebServer) Initialize() { Address: "0.0.0.0", Port: "80", } + s.AppName = "Go Template Container Web Server" // Attempt to read the config file configFile, err := os.ReadFile("config.yml") diff --git a/version.go b/version.go index 7383cf4..b3e716a 100644 --- a/version.go +++ b/version.go @@ -20,7 +20,7 @@ func handleVersion(w http.ResponseWriter, r *http.Request) { // Return (write) the version to the response body tmpl.Execute(w, SiteInfo{ CommitId: COMMIT_ID, - Name: "YASKM", + Name: ws.AppName, Version: APP_VERSION, }) }