diff options
Diffstat (limited to 'internal')
-rw-r--r-- | internal/version/main.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/version/main.go b/internal/version/main.go new file mode 100644 index 0000000..d8a745f --- /dev/null +++ b/internal/version/main.go @@ -0,0 +1,12 @@ +package version + +import "fmt" + +var Version, BuildDate string + +func VersionAndBuildInfo() string { + if Version != "" { + return fmt.Sprintf("version: %s, build on: %s", Version, BuildDate) + } + return "(unknown)" +} |