Centralizes the repeated title-casing pattern (cases.Title(language.English).String(strings.ReplaceAll(name, "-", " "))) into a single CapitalizeResourceName function in the styling package.
This function converts hyphenated API resource names to title case (e.g., "strong-jaw" → "Strong Jaw"), reduces code duplication, and improves maintainability.
Centralizes the repeated title-casing pattern
(cases.Title(language.English).String(strings.ReplaceAll(name, "-", " ")))into a singleCapitalizeResourceNamefunction in thestylingpackage.This function converts hyphenated API resource names to title case (e.g., "strong-jaw" → "Strong Jaw"), reduces code duplication, and improves maintainability.