version_check

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SemverVersionConstraint

func SemverVersionConstraint(version string, minimumVersion, maximumVersion string) error

SemverVersionConstraint check the version is supported by constraint

if the version or minimumVersion maximumVersion is empty, return error
if the version is not pass, return error
if the version is pass, return nil

func SemverVersionMinimumSupport

func SemverVersionMinimumSupport(version string, lessVersion string) error

SemverVersionMinimumSupport check the version is supported greater equal than lessVersion

if the version is empty, return error
if the version is not supported, return error
if version is less than lessVersion, return error
if the version is supported, return nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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