version

package
v1.38.4-cli1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 5 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 FromBuildInfo added in v1.30.1

func FromBuildInfo() (short, long, full string)

FromBuildInfo can be called by other programs to get their version strings (short,long and full) automatically added by go 1.18+ when doing `go install project@vX.Y.Z` and is also used for fortio itself.

func FromBuildInfoPath added in v1.31.0

func FromBuildInfoPath(path string) (short, long, full string)

FromBuildInfoPath returns the version of as specific module if that module isn't already the main one. Used by Fortio library version init to remember it's own version.

func Full added in v1.29.0

func Full() string

Full returns the Long version + all the run time BuildInfo, ie all the dependent modules and version and hash as well.

func Long

func Long() string

Long returns the long fortio version and build information. Format is "X.Y.X hash go-version processor os".

func Short

func Short() string

Short returns the 3 digit short fortio version string Major.Minor.Patch it matches the project git tag (without the leading v) or "dev" when not built from tag / not `go install fortio.org/fortio@latest` version.Short() is the overall project version (used to version json output too).

Types

This section is empty.

Jump to

Keyboard shortcuts

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