Last change
on this file since 77 was 77, checked in by Izuru Yakumo, 18 months ago |
Passed through golint only to get a load of garbage
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
350 bytes
|
Rev | Line | |
---|
[72] | 1 | // This is used for setting build-time variables
|
---|
[56] | 2 | package aya
|
---|
[50] | 3 |
|
---|
| 4 | import (
|
---|
| 5 | "fmt"
|
---|
[75] | 6 | "time"
|
---|
[50] | 7 | )
|
---|
| 8 |
|
---|
| 9 | var (
|
---|
[75] | 10 | // Set to current tag
|
---|
[77] | 11 | Version = "v0.6.8"
|
---|
[75] | 12 | Time = time.Now()
|
---|
[50] | 13 | )
|
---|
| 14 |
|
---|
| 15 | // FullVersion display the full version and build
|
---|
| 16 | func FullVersion() string {
|
---|
[75] | 17 | d := Time.Day()
|
---|
| 18 | m := Time.Month()
|
---|
| 19 | y := Time.Year()
|
---|
| 20 | return fmt.Sprintf("%v || %d.%d.%d", Version, y, m, d)
|
---|
[50] | 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.