package fic import ( "regexp" ) func ToURLid(str string) string { re := regexp.MustCompile("[^a-zA-Z0-9]+") return re.ReplaceAllLiteralString(str, "-") }