version

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tag = "v0.0.0-dev"
)

Functions

func CurrentInRange added in v0.27.0

func CurrentInRange(minVersion, maxVersion string) bool

CurrentInRange reports whether the running Obot version falls within the inclusive range [minVersion, maxVersion]. See InRange.

func Get

func Get() version.Version

func InRange added in v0.27.0

func InRange(tag, minVersion, maxVersion string) bool

InRange reports whether the Obot version tag falls within the inclusive range [minVersion, maxVersion]. Empty bounds are unrestricted. Development builds and invalid bounds are always in range. Pre-release and build metadata on tag are ignored, so a release candidate is treated as the release it precedes.

func IsDev added in v0.27.0

func IsDev(tag string) bool

IsDev reports whether tag identifies a development build.

func ValidateRange added in v0.27.0

func ValidateRange(minVersion, maxVersion string) error

ValidateRange checks that minVersion and maxVersion are full release versions (MAJOR.MINOR.PATCH) and that minVersion is not greater than maxVersion. Empty values are allowed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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