version

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Commit    string
	GoVersion string
	Platform  string
	Version   string
}

Version contains all of the information about the build of the current release. It is expected that this is ran on tagged releases and populated by `-ldflags` of the `go build` commmand. See the .gorelease.yml ldflags section for details.

func GetVersion

func GetVersion() *Version

GetVersion is used to retrieve the current version information of the application.

func (*Version) ToString

func (v *Version) ToString() string

ToString populates the version/build information into the output template and returns it for use.

Jump to

Keyboard shortcuts

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