version

package
v3.55.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "DEV"

Functions

func CheckForUpdate added in v3.31.1

func CheckForUpdate(currentVersion string) (string, bool)

CheckForUpdate checks GitHub for the latest release and returns the latest version string and whether it is newer than currentVersion. Returns ("", false) silently on any error or if no update is available.

func Format

func Format(ver string) string

func FormatUpdateNudge added in v3.31.1

func FormatUpdateNudge(latestVersion string, installation selfupdate.Installation) string

FormatUpdateNudge returns the nudge message for display.

func HasUpdate added in v3.47.0

func HasUpdate(currentVersion, latestVersion string) bool

HasUpdate returns true if latestVersion is strictly newer than currentVersion.

func IsReleaseVersion added in v3.47.0

func IsReleaseVersion(v string) bool

IsReleaseVersion reports whether v is a plain major.minor.patch release.

func LatestReleaseVersion added in v3.47.0

func LatestReleaseVersion() (string, error)

LatestReleaseVersion returns the latest released bk version from GitHub.

Types

type VersionCmd

type VersionCmd struct{}

func (*VersionCmd) Run

func (c *VersionCmd) Run() error

Jump to

Keyboard shortcuts

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