annotate version.go @ 54:4d411cdd68c1
draft
Updated manual page and added a Makefile
author |
novaburst |
date |
Fri, 07 Jan 2022 23:20:51 +0000 |
parents |
88a7d4a1ff62 |
children |
c6785950280e |
rev |
line source |
49
|
1 package main
|
|
2
|
|
3 import (
|
|
4 "fmt"
|
|
5 )
|
|
6
|
|
7 var (
|
|
8 // Version release version
|
|
9 Version = "0.0.1"
|
|
10
|
|
11 // Commit will be overwritten automatically by the build system
|
|
12 Commit = "HEAD"
|
|
13 )
|
|
14
|
|
15 // FullVersion display the full version and build
|
|
16 func FullVersion() string {
|
|
17 return fmt.Sprintf("%s@%s", Version, Commit)
|
|
18 }
|