about summary refs log tree commit diff
path: root/internal/version/main.go
blob: d8a745f4b6c47240a88694a295301b7f5fa80260 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package version

import "fmt"

var Version, BuildDate string

func VersionAndBuildInfo() string {
	if Version != "" {
		return fmt.Sprintf("version: %s, build on: %s", Version, BuildDate)
	}
	return "(unknown)"
}