/[aya]/version.go
ViewVC logotype

Contents of /version.go

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations)
Mon Sep 30 00:42:05 2024 UTC (6 weeks, 4 days ago) by yakumo_izuru
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
Mirrored from https://git.chaotic.ninja/git/yakumo_izuru/aya

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(){
17 fmt.Printf("%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 }

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev