semver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package semver provides shared utilities for manipulating Go semantic versions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Affects

func Affects(a []osv.Range, v string) bool

func GoTagToSemver

func GoTagToSemver(tag string) string

This is a modified copy of pkgsite/internal/stdlib:VersionForTag.

func LatestFixedVersion added in v0.2.0

func LatestFixedVersion(ranges []osv.Range) string

func Less

func Less(v1, v2 string) bool

Less returns whether v1 < v2, where v1 and v2 are semver versions with either a "v", "go" or no prefix.

func Valid added in v0.2.0

func Valid(v string) bool

Valid returns whether v is valid semver, allowing either a "v", "go" or no prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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