semver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package semver provides tooling for working with version information, in a way that conforms with the Semantic Versioning approach.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSemver

func GetSemver(s string) (string, error)

GetSemver tries to build a (Go) compliant Semantic Version number out of the provided string, regardless of how dirty it is. Despite using the semver package in a few places internally, most of this implementation is custom due to limitations in that package -- like not being able to parse out just the Patch number, or Pre-Release/Build numbers not being allowed in semver.Canonical()

Types

This section is empty.

Jump to

Keyboard shortcuts

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