modversion

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package modversion holds the library's CUE module version helpers: the rules for turning a version as a caller or subscription writes it into the form CUE's module machinery requires.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bare

func Bare(v string) string

Bare returns v without the "v" prefix: the spelling a catalog's metadata.version carries and a platform registry entry stamps. It is the inverse of Canonical and validates nothing either.

func Canonical

func Canonical(v string) string

Canonical returns v with the "v" prefix CUE module versions require. A bare SemVer ("1.0.0") gains it; an already-prefixed or empty version is returned unchanged. It validates nothing: module.NewVersion remains the validator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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