From d7a1eab5beba4241dab4402c5cd268432d7b46cd Mon Sep 17 00:00:00 2001 From: James Mills Date: Sat, 21 Mar 2020 08:20:16 +1000 Subject: Migrate to Go111Modules, Add Dockerfile and GoRelaser support --- version.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 version.go (limited to 'version.go') diff --git a/version.go b/version.go new file mode 100644 index 0000000..86587e6 --- /dev/null +++ b/version.go @@ -0,0 +1,18 @@ +package main + +import ( + "fmt" +) + +var ( + // Version release version + Version = "0.0.1" + + // Commit will be overwritten automatically by the build system + Commit = "HEAD" +) + +// FullVersion returns the full version and commit hash +func FullVersion() string { + return fmt.Sprintf("%s@%s", Version, Commit) +} -- cgit v1.2.3