semver

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package semver implements repository-private release-tag syntax and bump helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextStable

func NextStable(tag, part string) (string, error)

NextStable bumps patch, minor or major on a stable v-prefixed tag, resetting lower components. Prerelease/build tags and unknown parts return errors. Arithmetic uses Go int without overflow checks; callers must choose components and increments representable by that type.

func ValidateTag

func ValidateTag(tag string) error

ValidateTag accepts v-prefixed semantic-version syntax, including prerelease and build metadata. It validates syntax, not publication or numeric int range.

Types

This section is empty.

Jump to

Keyboard shortcuts

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