Mercurial > yakumo_izuru > aya
annotate version.go @ 78:5583ff07e384 draft
Separate the build<FORMAT> functions into their own source files
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Mon, 11 Dec 2023 17:23:49 +0000 |
parents | e1f9fda6986a |
children | 7b122b71fcfa |
rev | line source |
---|---|
71
7819959ac6ca
feat: move the blackfriday extension settings out of the render function, improve documentation
yakumo.izuru
parents:
55
diff
changeset
|
1 // This is used for setting build-time variables |
55 | 2 package aya |
49 | 3 |
4 import ( | |
5 "fmt" | |
74 | 6 "time" |
49 | 7 ) |
8 | |
9 var ( | |
74 | 10 // Set to current tag |
78
5583ff07e384
Separate the build<FORMAT> functions into their own source files
yakumo.izuru
parents:
77
diff
changeset
|
11 Version = "v0.7.0" |
74 | 12 Time = time.Now() |
49 | 13 ) |
14 | |
15 // FullVersion display the full version and build | |
16 func FullVersion() string { | |
74 | 17 d := Time.Day() |
18 m := Time.Month() | |
19 y := Time.Year() | |
20 return fmt.Sprintf("%v || %d.%d.%d", Version, y, m, d) | |
49 | 21 } |