version

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 2 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 Compare

func Compare(a, b string) bool

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

func LessThan

func LessThan(a, b string) bool

LessThan compares two version strings and returns true if the first version is less than the second.

func To

func To(version string) *semver.Version

To attempts to convert a version string to a semantic version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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