version

package
v0.0.0-...-8ad5b9e Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version implements reading of build version information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VCSInfo

type VCSInfo struct {
	Commit string // head commit hash
	Date   string // commit time in YYYYMMDD format
	Dirty  bool
}

VCSInfo represents the git repository state.

func VCS

func VCS() (VCSInfo, bool)

VCS returns version control information of the current executable.

Jump to

Keyboard shortcuts

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