Documentation ¶
Index ¶
- Variables
- func Domains(s string) string
- func Language(ss []string) []string
- func LanguageTags(ss []string) []string
- func NoDigits(tokens []string) []string
- func Normalize(s string) string
- func NormalizeAll(ss []string) []string
- func Overlap(tokens []string) []string
- func RemoveEachOnce(s string, removeSet ...string) string
- func RemoveEmpty(ss []string) []string
- func RemoveExtension(filePath string) string
- func ReplaceSpecial(token string) string
- func ScreenResolutions(ss []string) []string
- func ShrinkSpace(token string) string
- func SplitPath(p string, reverseDepth ...int) []string
- func SplitSpace(token string) []string
- func Tags(s string) string
- func ToLowerCase(ss []string) []string
- func Tokenize(token string) []string
- func TokenizeAll(terms []string) []string
- func TokenizeEach(ss []string, delimiter ...string) []string
- func UniqueSlice(ss []string) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DomainRegexList = []*regexp.Regexp{ regexp.MustCompile(`(?i)www\.[a-z0-9-]{1,30}\.[a-z]{2,}`), } )
View Source
var (
LanguageTagMap = map[string]bool{}
)
View Source
var (
ResolutionMap = map[string]bool{}
)
Functions ¶
func LanguageTags ¶
func NormalizeAll ¶
func RemoveEachOnce ¶
func RemoveEmpty ¶
func RemoveExtension ¶
func ReplaceSpecial ¶
func ScreenResolutions ¶
ScreenResolutions removes video resolutions from the the string
func ShrinkSpace ¶
func SplitSpace ¶
func ToLowerCase ¶
func TokenizeAll ¶
func TokenizeEach ¶
func UniqueSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.