version

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 7 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 {
	Major  int64
	Minor  int64
	Patch  int64
	Commit string
	Date   string
}

Version stores the SemVer release information along with the commit that produced the release and other useful information.

func New

func New(version, commit, date string) Version

New parses the version string and return the version instance.

func (Version) Render

func (v Version) Render()

Render dumps the version information to stdout.

Jump to

Keyboard shortcuts

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