function

NormalizeSlug

NormalizeSlug converts a source or manual value into Ridu's deterministic URL-segment form. ASCII letters are lowercased, digits and underscores are retained, whitespace and hyphen runs become one hyphen, and other characters are removed.

Arguments

ArgumentTypeDescription
valuestringThe value value.

Returns

The declared result.

string

Full signature

func NormalizeSlug(value string) string

Source field/slug.go:22

Related guides