mirror of
https://github.com/Luzifer/badge-gen.git
synced 2024-11-08 21:30:02 +00:00
Show program version in footer
This commit is contained in:
parent
ac8aaf561e
commit
b558294336
3 changed files with 7 additions and 2 deletions
2
app.go
2
app.go
|
@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
Loading…
Reference in a new issue