diff options
| author | Shulhan <ms@kilabit.info> | 2022-05-22 20:04:22 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-05-22 20:04:22 +0700 |
| commit | 0522b55558bdf913b161fa81cb2938eff9a27a01 (patch) | |
| tree | 9c79e0edfc819dd874a97b31fb68deb2ee92f3a2 /rescached.go | |
| parent | a5f6725a3e35d549bf3a5b4d55820810e87a0549 (diff) | |
| download | rescached-0522b55558bdf913b161fa81cb2938eff9a27a01.tar.xz | |
cmd/resolver: add command to print the program version
Executing "resolver version" will print the current version based
on the latest tag, number of commit, and latest commit hash:
v<TAG>.r<number-of-commit>.<commit-hash>
Diffstat (limited to 'rescached.go')
| -rw-r--r-- | rescached.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rescached.go b/rescached.go index 8b6fb4d..694f6b6 100644 --- a/rescached.go +++ b/rescached.go @@ -17,6 +17,10 @@ import ( "github.com/shuLhan/share/lib/memfs" ) +var ( + Version string // Contains version of program, overwritten by build. +) + // Server implement caching DNS server. type Server struct { dns *dns.Server |
