versionutils

package
v0.0.0-...-520fba6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAnRCVersion

func IsAnRCVersion(v string) bool

IsAnRCVersion return a bool indicating whether @v is an RC version e.g. returns true for "v4.6-rc7-wily", return false for "v4.5.0"

func UnifiedVersion

func UnifiedVersion(s string, padding int) string

UnifiedVersion returns a unified version string where each of major, minor and patch parts of version string @s will have a @padding number of characters without stripped of characters that are not digits e.g. UnifiedVersion("004.004.004", 4) will return "000400040004"

Types

This section is empty.

Jump to

Keyboard shortcuts

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