version

package
v0.0.0-...-08638e8 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major   int
	Minor   int
	Release int
}

Version represents an IOS-XR version https://sec.cloudapps.cisco.com/security/center/resources/ios_nx_os_reference_guide#release_naming_ios_xr https://www.cisco.com/c/en/us/products/collateral/ios-nx-os-software/ios-xr-software/ios-xr-release-taxonomy-bulletin.html

func NewVersion

func NewVersion(ver string) (Version, error)

NewVersion returns a parsed version

func (Version) Compare

func (v1 Version) Compare(v2 Version) int

Compare returns an integer comparing two version. The result will be 0 if v1==v2, -1 if v1 < v2, and +1 if v1 > v2.

func (Version) String

func (v Version) String() string

String returns the full version string

Jump to

Keyboard shortcuts

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