Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = Options{
Allowed: "-_",
Replace: "-",
}
Functions ¶
Types ¶
type Options ¶
type Options struct { Allowed string // Allowed symbols in slug in addition to letters (a-Z) and numbers (0-9). Replace string // Replace all disallowed symbols by this one. KeepCase bool // Do not lower case the slug KeepNonAscii bool // Do not try to convert letters to ASCII7, aka: do not remove diacritics. NoShrink bool // Do not shrink repetition of Replace char. NoTrim bool // Do not trim slug start/end for Replace character. }
Click to show internal directories.
Click to hide internal directories.