Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DASH = []*unicode.RangeTable{ unicode.Pd, }
View Source
var OK = "-_"
View Source
var SAFE = []*unicode.RangeTable{ unicode.Letter, unicode.Number, }
View Source
var SKIP = []*unicode.RangeTable{ unicode.Mark, unicode.Sk, unicode.Lm, }
View Source
var SPACE = []*unicode.RangeTable{ unicode.Space, }
View Source
var TO_DASH = "/\\—–.~!@#$%^&*(){}[]+=?><;:`"
Functions ¶
func IDify ¶
IDify a string. The result will only contain ASCII letters, digits and dashes. It will not begin or end with a dash, and it will not contain runs of multiple dashes.
It is forced into being ASCII, but may contain any Unicode characters, with the above restrictions.
func SanatizeText ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.