version

package
v1.22.45 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 1 Imported by: 3

Documentation

Overview

Package version provides version information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Major int
	Minor int
	Patch int

	// Additional metadata
	Name string
}

Application represents an application version

func Current

func Current() *Application

Current returns the current version

func (*Application) Compare

func (v *Application) Compare(other *Application) int

Compare compares two versions Returns -1 if v < other, 0 if v == other, 1 if v > other

func (*Application) Compatible

func (v *Application) Compatible(other *Application) bool

Compatible returns whether versions are compatible

func (*Application) String

func (v *Application) String() string

String returns the version string

Jump to

Keyboard shortcuts

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