verinfo

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitInfo

type CommitInfo struct {
	Version    string
	Revision   string
	LastCommit time.Time
	DirtyBuild bool
}

CommitInfo contains information about the commit and tag a build was created with.

func Get

func Get() (CommitInfo, error)

Get fetches version and git commit data embedded in the current build.

Jump to

Keyboard shortcuts

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