source: code/trunk/version.go@ 86

Last change on this file since 86 was 86, checked in by Izuru Yakumo, 15 months ago

とにかく、「aya.PrintVersion」は何か特別なことをするわけではありません

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

File size: 418 bytes
RevLine 
[72]1// This is used for setting build-time variables
[56]2package aya
[50]3
4import (
5 "fmt"
6)
7
8var (
[80]9 // Variables set at build-time
10 Date string
11 Vendor string
12 Version string
[50]13)
14
[80]15// PrintVersion only displays the obvious
[86]16func PrintVersion(){
17 fmt.Printf("%s", Version)
[50]18}
[80]19
20// PrintFullVersion display the full version and build
21func 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.