semver

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package semver provides functions related to semanic version. This package is based on "golang.org/x/mod/semver"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePluginVersion

func ComparePluginVersion(v, w string) (int, error)

ComparePluginVersion validates and compares two plugin semantic versions.

The result will be 0 if v == w, -1 if v < w, or +1 if v > w.

func IsValid

func IsValid(version string) bool

IsValid returns true if version is a valid 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