decision

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FormatURL = "https://specscore.md/decision-specification"

FormatURL is the canonical spec URL for the Decision document type, emitted in both the frontmatter `format:` field and the adherence-footer line.

Variables

This section is empty.

Functions

func AllNumbers

func AllNumbers(specRoot string) []int

AllNumbers returns all decision numbers found in spec/decisions/ and archived/, sorted ascending.

func NextNumber

func NextNumber(specRoot string) (int, error)

NextNumber scans spec/decisions/ and spec/decisions/archived/ for the highest NNNN prefix and returns max + 1. Returns 1 if no decisions exist.

func Scaffold

func Scaffold(opts ScaffoldOptions) ([]byte, error)

Scaffold returns a lint-clean Decision file body.

func ValidateSlug

func ValidateSlug(slug string) error

Types

type ScaffoldOptions

type ScaffoldOptions struct {
	Slug       string
	Title      string
	Owner      string
	Date       string
	Tags       string
	SourceIdea string
	Supersedes string
}

Jump to

Keyboard shortcuts

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