pkg

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   string
	Commit    string
	Tag       string
	GoVersion string
	BuildDate string
)

Build-time arguments are used to populate these variables to generate build-specific version information.

Functions

This section is empty.

Types

type LatestVersion

type LatestVersion struct {
	Latest    string
	Installed string
	Status    string
}

LatestVersion contains information about the latest version of the project and the current version of the project.

type VersionInfo

type VersionInfo struct {
	Version   string
	Commit    string
	Tag       string
	GoVersion string
	BuildDate string
	Compiler  string
	OS        string
	Arch      string
}

VersionInfo contains runtime and build time information about the application.

func NewVersionInfo

func NewVersionInfo() VersionInfo

NewVersionInfo creates a struct which holds all of the runtime and build-time supplied variables describing the version and build state for the application.

Jump to

Keyboard shortcuts

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