version

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 1 Imported by: 12

README

version

Version management package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitHash

func CommitHash() string

CommitHash returns a string representing the current commitHash.

func FullVersion

func FullVersion() string

FullVersion returns a string representing the version and commit hash concatenated separated by a '-'.

Returns only the version if the commit hash is not defined.

func SetCommitHash

func SetCommitHash(hash string)

SetCommitHash sets the commit hash of the application to the value provided as hash. Empty values are accepted.

func SetVersion

func SetVersion(ver string)

SetVersion sets the version to tha value provided as ver unless ver is empty.

func Version

func Version() string

Version returns a string representing the current version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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