1
0
Fork 0
mirror of https://github.com/Luzifer/badge-gen.git synced 2024-11-08 13:20:02 +00:00

Show program version in footer

This commit is contained in:
Knut Ahlers 2016-06-29 00:22:48 +02:00
parent ac8aaf561e
commit b558294336
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 7 additions and 2 deletions

2
app.go
View file

@ -27,6 +27,7 @@ var (
Listen string `flag:"listen" default:":3000" description:"Port/IP to listen on"` Listen string `flag:"listen" default:":3000" description:"Port/IP to listen on"`
}{} }{}
serviceHandlers = map[string]serviceHandler{} serviceHandlers = map[string]serviceHandler{}
version = "dev"
) )
type serviceHandlerDocumentation struct { type serviceHandlerDocumentation struct {
@ -177,5 +178,6 @@ func handleDemoPage(res http.ResponseWriter, r *http.Request) {
tpl.Execute(res, map[string]interface{}{ tpl.Execute(res, map[string]interface{}{
"Examples": examples, "Examples": examples,
"Version": version,
}) })
} }

View file

@ -66,6 +66,9 @@
<p class="footnote"> <p class="footnote">
Made with <i class="fa fa-heart red"></i> and Go by <a href="https://luzifer.io/">Knut Ahlers</a> Made with <i class="fa fa-heart red"></i> and Go by <a href="https://luzifer.io/">Knut Ahlers</a>
</p> </p>
<p>
<code>badge-gen</code> {{ .Version }}
</p>
</div> </div>
</div> <!-- ./row --> </div> <!-- ./row -->

File diff suppressed because one or more lines are too long