version

package
v0.0.0-...-02e3363 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidVersion = errors.New("invalid version")

Functions

func CompareWithBuild

func CompareWithBuild(v1 Version, build1 int, v2 Version, build2 int) int

func ParseBuildNumber

func ParseBuildNumber(s string) (int, error)

Types

type Version

type Version struct {
	Major, Minor, Patch int
}

func Parse

func Parse(s string) (Version, error)

func (Version) Compare

func (v Version) Compare(other Version) int

Jump to

Keyboard shortcuts

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