version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArch

func GetArch() string

GetArch returns the CPU architecture of target binary recorded at build time.

func GetBranch

func GetBranch() string

GetBranch returns the Git branch name used during the build.

func GetDate

func GetDate() string

GetDate returns the build date in RFC3339 format.

func GetFullCommit

func GetFullCommit() string

GetFullCommit returns the full Git commit SHA from which the binary was built.

func GetOS

func GetOS() string

GetOS returns the operating system of target binary recorded at build time.

func GetShortCommit

func GetShortCommit() string

GetShortCommit returns the abbreviated Git Commit SHA from which the binary was built.

func GetVersion

func GetVersion() string

GetVersion returns the build version of the application.

func IsProd

func IsProd() bool

IsProd returns true if the application is running in production mode.

func String

func String() string

String returns a formatted multi-line string that displays the build metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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