Documentation ¶
Overview ¶
Package slugify implements Make Pretty Slug
s := "北京kožušček,abc" fmt.Println(slugify.Slugify(s)) // Output: bei-jing-kozuscek-abc
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ReDupSeparatorChar = regexp.MustCompile(fmt.Sprintf("%s{2,}", SeparatorForRe))
ReDupSeparatorChar match duplicate separator string
View Source
var ReInValidChar = regexp.MustCompile(fmt.Sprintf("[^%sa-zA-Z0-9]", SeparatorForRe))
ReInValidChar match invalid slug string
View Source
var Separator = "-"
Separator separator between words
View Source
var SeparatorForRe = regexp.QuoteMeta(Separator)
SeparatorForRe for regexp
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.