aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/version/version.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/pkg/version/version.go b/pkg/version/version.go
index 5e224a6..eabf583 100644
--- a/pkg/version/version.go
+++ b/pkg/version/version.go
@@ -1,11 +1,18 @@
package version
-// the way via debug.BuildInfo does not work -- it'll always return "devel"
-// thus the oldschool way: hardcoded
+// this is set by the linker during build
+var (
+ version = "devel"
+ commit = ""
-const version = "0.2.0-devel"
+)
-// Current feed2imap version
+// Version returns the current feed2imap-go version
func Version() string {
return version
}
+
+// FullVersion returns the version including the commit hash
+func FullVersion() string {
+ return "Version " + version + " Commit: " + commit
+} \ No newline at end of file
class='insertions'>+477 2008-01-14 r605@Devoty: necoro | 2008-01-14 11:43:34 +0100Necoro2-26/+129 2008-01-14 r603@Devoty: necoro | 2008-01-14 11:30:26 +0100Necoro4-26/+38 2008-01-11 r598@Devoty: necoro | 2008-01-10 16:36:29 +0100Necoro4-10/+50 2008-01-11 r597@Devoty: necoro | 2008-01-10 14:12:35 +0100Necoro1-3/+3 2008-01-10 r595@Devoty: necoro | 2008-01-10 04:04:15 +0100Necoro1-52/+3 2008-01-09 r586@Devoty: necoro | 2008-01-09 14:54:18 +0100Necoro1-1/+1 2007-12-06 r577@Devoty: necoro | 2007-12-06 20:37:36 +0100Necoro1-1/+1 2007-12-06 r572@Devoty: necoro | 2007-11-28 08:48:15 +0100Necoro1-0/+1 2007-11-27 r570@Devoty: necoro | 2007-11-27 02:08:21 +0100Necoro3-84/+108