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

semver

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package semver is a wrapper for handling of semantic version (https://semver.org) values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Less

func Less(a, b Version) bool

Less checks if a is strictly less than b (a<b).

Types

type Version

type Version k8sver.Version

Version is in-memory representation of a semantic version (https://semver.org) value.

func Parse

func Parse(s string) (Version, error)

Parse parses a semantic version value with a leading 'v' character.

func (Version) String

func (v Version) String() string

String returns string representation of a semantic version value with a leading 'v' character.

Jump to

Keyboard shortcuts

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