Mercurial > yakumo_izuru > aya
view version.go @ 86:897d57a7ec95 draft
Add support for disabling features at build time
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Wed, 03 Apr 2024 23:17:16 +0000 |
parents | 64cd79d367b5 |
children | 744541fee713 |
line wrap: on
line source
// This is used for setting build-time variables package aya import ( "fmt" ) var ( // Variables set at build-time Date string Vendor string Version string ) // PrintVersion only displays the obvious func PrintVersion(){ fmt.Printf("%s", Version) } // PrintFullVersion display the full version and build func PrintFullVersion() string { return fmt.Sprintf("%s, built at %s, on %s", Version, Date, Vendor) }