version

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package version is a singleton module which stores project build information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBranch added in v0.4.0

func BuildBranch() string

BuildBranch returns branch which was used to build the app.

func BuildDate

func BuildDate() string

BuildDate returns date of the build.

func CommitHash added in v0.4.0

func CommitHash() string

CommitHash returns last commit id which was used to build the app.

func Number added in v0.4.0

func Number() string

Number returns version of the application.

func Print added in v0.2.0

func Print()

Print - outputs build information right into the terminal.

func Set

func Set(buildVersion, buildCommit, buildBranch, buildDate string)

Set should be called from the main function to make application version details available for other app modules.

Types

This section is empty.

Jump to

Keyboard shortcuts

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