From 248735710a2a090de82d94b94e00fb73e535fd88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Fri, 18 Jun 2021 14:47:32 +0200 Subject: [PATCH] Add compiler version to version string --- version.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/version.go b/version.go index f9475da..8a782a7 100644 --- a/version.go +++ b/version.go @@ -1,14 +1,17 @@ package apiary -import "fmt" +import ( + "fmt" + "runtime" +) -var Version = "v0.1.2" +var Version = "v0.1.3" var Build string func FullVersion() string { if Build != "" { - return fmt.Sprintf("%s-%s", Version, Build) + return fmt.Sprintf("%s-%s (%s)", Version, Build, runtime.Version()) } - return Version + return fmt.Sprintf("%s (%s)", Version, runtime.Version()) }