From 4dcacaec15bad4213e35e08451a4eed318e7db30 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Sun, 28 Feb 2016 12:34:38 +0100 Subject: [PATCH] Disclose go version in info message. --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index f9a96da..55ebdee 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,7 @@ import ( "flag" "fmt" "log" + "runtime" "strings" "time" @@ -139,5 +140,6 @@ func HandleMessage(m *irc.Message) { } func SoftwareInfo() string { - return fmt.Sprintf("flokatirc %s-%s (built %s)", version.FlokatiVersion, version.FlokatiBuild, version.FlokatiBuilddate) + return fmt.Sprintf("flokatirc %s-%s (built %s [%])", version.FlokatiVersion, + version.FlokatiBuild, version.FlokatiBuilddate, runtime.Version()) }