mirror of
https://github.com/Luzifer/badge-gen.git
synced 2024-12-20 16:41:16 +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"`
|
||||
}{}
|
||||
serviceHandlers = map[string]serviceHandler{}
|
||||
version = "dev"
|
||||
)
|
||||
|
||||
type serviceHandlerDocumentation struct {
|
||||
|
@ -177,5 +178,6 @@ func handleDemoPage(res http.ResponseWriter, r *http.Request) {
|
|||
|
||||
tpl.Execute(res, map[string]interface{}{
|
||||
"Examples": examples,
|
||||
"Version": version,
|
||||
})
|
||||
}
|
||||
|
|
|
@ -66,6 +66,9 @@
|
|||
<p class="footnote">
|
||||
Made with <i class="fa fa-heart red"></i> and Go by <a href="https://luzifer.io/">Knut Ahlers</a>
|
||||
</p>
|
||||
<p>
|
||||
<code>badge-gen</code> {{ .Version }}
|
||||
</p>
|
||||
</div>
|
||||
</div> <!-- ./row -->
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue