buildinfo

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch

func Arch() string

func BranchName added in v0.1.5

func BranchName() string

func BuildDate

func BuildDate() time.Time

func Commit

func Commit() string

func Environment

func Environment() string

func Info

func Info() info

func IsDev

func IsDev() bool

func IsRelease

func IsRelease() bool

func Name

func Name() string

Name returns the name for the executable that started the current process.

Name is safe for concurrent use.

func OS

func OS() string

Types

type CalverVersion added in v0.1.59

type CalverVersion struct {
	calver.Version
}

func ParseCalver added in v0.1.59

func ParseCalver(version string) (*CalverVersion, error)

func (CalverVersion) EQ added in v0.1.59

func (v CalverVersion) EQ(other Version) bool

func (*CalverVersion) Newer added in v0.1.59

func (v *CalverVersion) Newer() bool

func (*CalverVersion) SeverelyOutdated added in v0.1.59

func (v *CalverVersion) SeverelyOutdated(latest Version) bool

func (CalverVersion) String added in v0.1.59

func (v CalverVersion) String() string

type SemverVersion added in v0.1.59

type SemverVersion struct {
	semver.Version
}

func ParseSemver added in v0.1.59

func ParseSemver(version string) (*SemverVersion, error)

func (SemverVersion) EQ added in v0.1.59

func (v SemverVersion) EQ(other Version) bool

func (*SemverVersion) Newer added in v0.1.59

func (v *SemverVersion) Newer() bool

func (*SemverVersion) SeverelyOutdated added in v0.1.59

func (v *SemverVersion) SeverelyOutdated(latest Version) bool

type Version

type Version interface {
	String() string
	EQ(other Version) bool
	Newer() bool
	SeverelyOutdated(other Version) bool
}

func ParseVersion added in v0.1.59

func ParseVersion(other string) (Version, error)

func ParsedVersion added in v0.1.59

func ParsedVersion() Version

type Versions added in v0.1.59

type Versions []Version

func (Versions) Len added in v0.1.59

func (v Versions) Len() int

func (Versions) Less added in v0.1.59

func (s Versions) Less(i, j int) bool

func (Versions) Swap added in v0.1.59

func (s Versions) Swap(i, j int)

Jump to

Keyboard shortcuts

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