view version.go @ 59:ed3aa9aaad0a draft

Add functions to build Amber and GCSS (taken from original project) Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Fri, 21 Apr 2023 20:25:31 +0000
parents c6785950280e
children 7819959ac6ca
line wrap: on
line source

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)
}