Documentation ¶
Index ¶
Constants ¶
View Source
const CategorySeparator = ":"
CategorySeparator is the string that divdes category components
Variables ¶
This section is empty.
Functions ¶
func CanonicalizeCategory ¶ added in v1.20.4
func IsValidCategory ¶ added in v1.20.4
Check if string is a valid category. Must have at least two components, each a non-empty string.
func SlugifyCategory ¶ added in v1.20.4
SlugifyCategory converts a category+value string into a slug. The category string should be two tokens separated by the CategorySeparator.
func SlugifyToken ¶
SlugifyToken converts a category or category to a slug
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.