semver

package
v2.0.0 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 checks v-prefixed release tag syntax and computes stable version successors for the release command. NextStable uses machine int arithmetic; it is not an arbitrary-precision version calculator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextStable

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

NextStable accepts stable v-prefixed tags and increments patch, minor or major, resetting subordinate components. Parsed components use strconv.Atoi with ignored range errors and unchecked machine-int increment; use representable components with room for the selected increment. No Git state is consulted.

func ValidateTag

func ValidateTag(tag string) error

ValidateTag accepts v-prefixed SemVer syntax, including prerelease/build metadata, but does not check component arithmetic range or existing Git tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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