semantic

package
v2.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Version struct holds semantic versioning information

func VersionFromString

func VersionFromString(version string) (Version, error)

VersionFromString creates new semantic Version by parsing version string

func (Version) Lt

func (v Version) Lt(version Version) bool

Lt returns true if this version is less than version parameter

Jump to

Keyboard shortcuts

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