semanticversion

package
v0.0.0-...-23e6e85 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemVersion

type SemVersion struct {
	Version string
	Major   int
	Minor   int
	Patch   *int
}

SemVersion is the struct to store the version components of an API

func ValidateAndGetVersionComponents

func ValidateAndGetVersionComponents(version string) (*SemVersion, error)

ValidateAndGetVersionComponents validates version string and extracts version components

func (SemVersion) Compare

func (baseVersion SemVersion) Compare(version SemVersion) bool

Compare - compares two semantic versions and returns true if `version` is greater or equal than `baseVersion`

Jump to

Keyboard shortcuts

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