clean

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 Domains

func Domains(s string) string

func Language

func Language(ss []string) []string

func LanguageTags

func LanguageTags(ss []string) []string

func NoDigits

func NoDigits(tokens []string) []string

func Normalize

func Normalize(s string) string

func NormalizeAll

func NormalizeAll(ss []string) []string

func Overlap

func Overlap(tokens []string) []string

func RemoveEachOnce

func RemoveEachOnce(s string, removeSet ...string) string

func RemoveEmpty

func RemoveEmpty(ss []string) []string

func RemoveExtension

func RemoveExtension(filePath string) string

func ReplaceSpecial

func ReplaceSpecial(token string) string

func ScreenResolutions

func ScreenResolutions(ss []string) []string

ScreenResolutions removes video resolutions from the the string

func ShrinkSpace

func ShrinkSpace(token string) string

func SplitPath

func SplitPath(p string, reverseDepth ...int) []string

func SplitSpace

func SplitSpace(token string) []string

func Tags

func Tags(s string) string

ags removes all [...] tags from the string

func ToLowerCase

func ToLowerCase(ss []string) []string

func Tokenize

func Tokenize(token string) []string

func TokenizeAll

func TokenizeAll(terms []string) []string

func TokenizeEach

func TokenizeEach(ss []string, delimiter ...string) []string

func UniqueSlice

func UniqueSlice(ss []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL