aboutsummaryrefslogtreecommitdiff
path: root/gotp.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-07 01:00:42 +0700
committerShulhan <ms@kilabit.info>2022-08-07 01:00:42 +0700
commitdbfed69ca90f5cd02b969fd714a35acc80f5f703 (patch)
tree49f3cb95a2c6ffec7e04ff1f75dd6915d6f86286 /gotp.go
parentf0831230b4578a580ae207e446654ca39c95a550 (diff)
downloadgotp-dbfed69ca90f5cd02b969fd714a35acc80f5f703.tar.xz
cmd/gotp: add subcommand "version"
The "version" command print the module version based on the latest tag, with additional commit number and hash.
Diffstat (limited to 'gotp.go')
-rw-r--r--gotp.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/gotp.go b/gotp.go
index 3b9625a..4e88a4d 100644
--- a/gotp.go
+++ b/gotp.go
@@ -24,6 +24,10 @@ const (
providerNameAegis = `aegis`
)
+var (
+ Version = `0.2.0`
+)
+
// normalizeLabel convert non alpha number, hyphen, underscore, or period
// characters into `-`.
func normalizeLabel(in string) (out string) {