version

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package version provides some utilities for working with version strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal added in v0.0.13

func Equal(a, b string) bool

Equal compares two version strings for equality. A failure will always return false.

func LessThan

func LessThan(a, b string) bool

LessThan tests if one version is less than another one. A failure will always return true.

func Parse added in v0.0.13

func Parse(name string) *semver.Version

Parse attempts to extract the semantic version from a complete string. It iterates through the string, left to right, looking for a valid semantic version. If no valid version is found, it returns nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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