From 657bd781bf4095a78387525e641908872e2205e5 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sat, 21 Nov 2020 17:04:05 -0500 Subject: Add some version information and a license. --- cmd/web/index.go | 6 +++++- cmd/web/main.go | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'cmd/web') diff --git a/cmd/web/index.go b/cmd/web/index.go index 2eb3695..a4a91c2 100644 --- a/cmd/web/index.go +++ b/cmd/web/index.go @@ -82,6 +82,9 @@ Change library path +

Version information

+
{{.Version}}
+ `)) ) @@ -96,7 +99,8 @@ func index(w http.ResponseWriter, r *http.Request) { struct { Lib *steam.Library Info *statusInfo - }{Lib, status.s}) + Version string + }{Lib, status.s, Version}) if err != nil { Logger.Printf("While Rendering template: %s", err) } diff --git a/cmd/web/main.go b/cmd/web/main.go index 6bf0a5d..ec0704d 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -15,6 +15,7 @@ import ( ) var ( + Version = "Development" Logger = log.New(os.Stderr, "", log.LstdFlags) Listen = ":8899" -- cgit v1.2.3