Mercurial > yakumo_izuru > aya
annotate version.go @ 90:82986500ae71 draft default tip
Update repository URLs
author | yakumo.izuru |
---|---|
date | Thu, 15 May 2025 01:25:32 +0000 |
parents | 744541fee713 |
children |
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" | |
6 ) | |
7 | |
8 var ( | |
79
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
9 // Variables set at build-time |
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
10 Date string |
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
11 Vendor string |
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
12 Version string |
49 | 13 ) |
14 | |
79
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
15 // PrintVersion only displays the obvious |
89 | 16 func PrintVersion() string { |
17 return fmt.Sprintf("%s", Version) | |
49 | 18 } |
79
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
19 |
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
20 // PrintFullVersion display the full version and build |
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
21 func PrintFullVersion() string { |
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
22 return fmt.Sprintf("%s, built at %s, on %s", Version, Date, Vendor) |
7b122b71fcfa
A good time to finally release a stable version
yakumo.izuru
parents:
78
diff
changeset
|
23 } |