specnum

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package specnum provides spec number parsing utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(s string) int

Parse extracts the leading numeric value from a spec ID string. Handles bare numbers ("019" → 19), padded numbers ("0019" → 19), and full spec names ("019-review-fix-loop" → 19). Returns -1 if s has no numeric prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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