view version.go @ 72:b32ca33188c0 draft

コードを借りる Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Mon, 23 Oct 2023 22:39:52 +0000
parents 7819959ac6ca
children d8727551f403
line wrap: on
line source

// This is used for setting build-time variables
package aya

import (
	"fmt"
)

var (
	// Version release version
	Version = "0.0.1"

	// Commit will be overwritten automatically by the build system
	Commit = "HEAD"
)

// FullVersion display the full version and build
func FullVersion() string {
	return fmt.Sprintf("%s@%s", Version, Commit)
}