aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/index.go
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-11-21 17:04:05 -0500
committerMitch Riedstra <mitch@riedstra.us>2020-11-21 17:04:05 -0500
commit657bd781bf4095a78387525e641908872e2205e5 (patch)
tree2423872ac8f9b7cd13238e066729ed11f50da046 /cmd/web/index.go
parent3e1b39031437eaf48c5c6ea895dd632b1249b0a2 (diff)
downloadsteam-export-657bd781bf4095a78387525e641908872e2205e5.tar.gz
steam-export-657bd781bf4095a78387525e641908872e2205e5.tar.xz
Add some version information and a license.
Diffstat (limited to 'cmd/web/index.go')
-rw-r--r--cmd/web/index.go6
1 files changed, 5 insertions, 1 deletions
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
</form>
+<h3>Version information</h3>
+<pre><code>{{.Version}}</pre></code>
+
</body>
`))
)
@@ -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)
}