versionKit

package
v3.0.66 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConstraint

func CheckConstraint(versionStr, constraintStr string) (bool, error)

CheckConstraint 判断范围...

@param versionStr e.g. "1.2" @param constraintStr e.g. ">= 1.0, < 1.4"

func NewVersion

func NewVersion(v string) (*version.Version, error)

NewVersion

@param v (1) 不能为""

(2) e.g. 	""1.0.0-alpha.1+build.123""
			"1.0.0-alpha+001"
			"1.3.10+meta"
			"v1.3.10+meta"

func Sort

func Sort(s []string) ([]*version.Version, error)

Sort 排序.

Types

This section is empty.

Jump to

Keyboard shortcuts

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