From 899b2fedc2ce193cc8916144f090399d95802c63 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Fri, 11 Dec 2020 11:51:22 +0100 Subject: [PATCH] new(pkg): version Signed-off-by: Leonardo Di Donato --- pkg/version/version.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkg/version/version.go diff --git a/pkg/version/version.go b/pkg/version/version.go new file mode 100644 index 0000000..3de6fec --- /dev/null +++ b/pkg/version/version.go @@ -0,0 +1,13 @@ +package version + +import "fmt" + +var ( + version string + commit string +) + +// String returns the version. +func String() string { + return fmt.Sprintf("%s-%s\n", version, commit) +}