slug¶
Package slug converts free-form work labels into URL-friendly slugs and composes codespace display names from repo, branch, and label parts.
Index¶
- func BuildDisplayName(repository, branch, workLabel, fallback string) string
- func SlugifyWorkLabel(value string) string
func BuildDisplayName¶
BuildDisplayName composes a codespace display name from repo, branch, and work label. The result is truncated to 48 characters (GitHub Codespaces limit).
func SlugifyWorkLabel¶
SlugifyWorkLabel converts a free-form label into a URL-friendly slug.
Generated by gomarkdoc