Last change
on this file was 90, checked in by Izuru Yakumo, 5 weeks ago |
Ayaya, why did I do that again?
|
File size:
434 bytes
|
Line | |
---|
1 | // This is used for setting build-time variables
|
---|
2 | package aya
|
---|
3 |
|
---|
4 | import (
|
---|
5 | "fmt"
|
---|
6 | )
|
---|
7 |
|
---|
8 | var (
|
---|
9 | // Variables set at build-time
|
---|
10 | Date string
|
---|
11 | Vendor string
|
---|
12 | Version string
|
---|
13 | )
|
---|
14 |
|
---|
15 | // PrintVersion only displays the obvious
|
---|
16 | func PrintVersion() string {
|
---|
17 | return fmt.Sprintf("%s", Version)
|
---|
18 | }
|
---|
19 |
|
---|
20 | // PrintFullVersion display the full version and build
|
---|
21 | func PrintFullVersion() string {
|
---|
22 | return fmt.Sprintf("%s, built at %s, on %s", Version, Date, Vendor)
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.