version

package
v4.30.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VCSVersion added in v4.22.0

func VCSVersion() string

VCSVersion retrieves the version information from git.

If the current commit is untagged, the version string will show the last tag, followed by the number of commits since the tag, then the short hash of the current commit.

If the tree is dirty, "-dirty" is appended.

func Version added in v4.22.0

func Version() string

Version returns either the tag set by GoReleaser, or the version information from Git.

Types

This section is empty.

Jump to

Keyboard shortcuts

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