version

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compatible added in v1.5.0

func Compatible(v1, v2 string) bool

CompatibleWith tells if a given versions are compatible. Versions are not compatible if one is crossed the breaking ponit (v1 >= breakingVersion) and the other isn't (v2 < breakingVersion)

Types

type Info

type Info struct {
	Version   string
	Platform  string
	GitCommit string
	GitBranch string
	BuildTime string
	GoVersion string
}
var DefaultInfo Info

func Current added in v1.5.0

func Current() (v Info)

func (Info) All

func (i Info) All(format string) string

func (Info) Short

func (i Info) Short() string

func (Info) String added in v1.6.0

func (i Info) String() string

Jump to

Keyboard shortcuts

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