source: code/trunk/version.go@ 75

Last change on this file since 75 was 75, checked in by Izuru Yakumo, 18 months ago

The Empress (III)

  • Change the way how versions are handled in version.go (to ease `go install`)
  • Upgrade yaml.v2 to yaml.v3

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 350 bytes
Line 
1// This is used for setting build-time variables
2package aya
3
4import (
5 "fmt"
6 "time"
7)
8
9var (
10 // Set to current tag
11 Version = "v0.6.6"
12 Time = time.Now()
13)
14
15// FullVersion display the full version and build
16func FullVersion() string {
17 d := Time.Day()
18 m := Time.Month()
19 y := Time.Year()
20 return fmt.Sprintf("%v || %d.%d.%d", Version, y, m, d)
21}
Note: See TracBrowser for help on using the repository browser.