version

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Overview

Package version for fortio holds version information and build information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Long

func Long() string

Long returns the full version and build information. Format is "X.Y.X[-pre] YYYY-MM-DD HH:MM SHA[-dirty]" date and time is the build date (UTC), sha is the git sha of the source tree.

func Major

func Major() int

Major returns the numerical major version number (first digit of version.Short()).

func Minor

func Minor() int

Minor returns the numerical minor version number (second digit of version.Short()).

func Patch

func Patch() int

Patch returns the numerical patch level (third digit of version.Short()).

func Short

func Short() string

Short returns the 3 digit short version string Major.Minor.Patch[-pre] version.Short() is the overall project version (used to version json output too). "-pre" is added when the version doesn't match exactly a git tag or the build isn't from a clean source tree. (only standard dockerfile based build of a clean, tagged source tree should print "X.Y.Z" as short version).

Types

This section is empty.

Jump to

Keyboard shortcuts

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