meta

package
v1.5.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 4 Imported by: 2

Documentation

Overview

Package meta expose information about the application like the version.

Index

Constants

This section is empty.

Variables

View Source
var (
	SemVer   = ""     // SemVer is the target version, set during build with ld-flags
	Snapshot = "true" // Snapshot is overridden by ld-flags, set to true, it will show the GIT status from where the bin has been built
)
View Source
var (
	BuildVersion = BuildStat{}
)

Functions

func Version

func Version() string

Version returns the version of the app, updated during build

func VersionOrDefault added in v1.5.7

func VersionOrDefault(versions ...string) string

Types

type BuildStat added in v1.5.2

type BuildStat struct {
	Version    string
	Revision   string
	LastCommit time.Time
	DirtyBuild bool
}

func (BuildStat) GitInfoParts added in v1.5.7

func (b BuildStat) GitInfoParts(prefix string) string

func (BuildStat) String added in v1.5.2

func (b BuildStat) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL