version

package
v0.0.0-...-68775c4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 1 Imported by: 3

Documentation

Overview

Package version is a helper for extracting versions from the binary

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Version is the semantic version
	Version string

	// Commit is the Git commit digest
	Commit string

	// Dirty is true if the build was dirty (not matching the commit)
	Dirty bool

	// Built is the datetime of the last commit
	Built string
}

Info is the struct to hold the version metadata of this tool

func Get

func Get() Info

Get returns the version info

Jump to

Keyboard shortcuts

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