Help us shape the future of Go! Take the 2026 Go Developer Survey

releaseversion

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(left, right string) (comparison int, comparable bool)

Compare 按 SemVer 2.0.0 比较版本,包括 prerelease 优先级。 只有两侧都合法时 comparable 才为 true。

func Core

func Core(value string) (string, bool)

func IsPrerelease

func IsPrerelease(value string) bool

func Normalize

func Normalize(value string) (string, bool)

Normalize 把产品版本规范成带 v 前缀的 SemVer。 返回 false 表示输入不是合法 SemVer;调用方不能再退化成字符串比较。

Types

This section is empty.

Jump to

Keyboard shortcuts

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