semver

package
v0.0.0-...-4eb9d72 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: BSD-3-Clause Imports: 2 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 CanonicalizeSemverPrefix

func CanonicalizeSemverPrefix(s string) string

CanonicalizeSemverPrefix turns a SEMVER string into the canonical representation using the 'v' prefix, as used by the OSV format. Input may be a bare SEMVER ("1.2.3"), Go prefixed SEMVER ("go1.2.3"), or already canonical SEMVER ("v1.2.3").

func GoTagToSemver

func GoTagToSemver(tag string) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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