stringutil

package
v0.0.0-...-ed41999 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CensoredClanTags = []string{
	"anal",
	"anus",
	"arab",
	"arse",
	"ass",
	"a55",
	"boob",
	"b00b",
	"butt",
	"chav",
	"clit",
	"cock",
	"c0ck",
	"coon",
	"c00n",
	"crap",
	"cum",
	"cumm",
	"cunt",
	"damn",
	"dick",
	"dyke",
	"fag",
	"fags",
	"fuck",
	"fuk",
	"gay",
	"gays",
	"gook",
	"hell",
	"homo",
	"jiz ",
	"jizz",
	"kink",
	"kkk",
	"kum",
	"milf",
	"nazi",
	"nig",
	"nigs",
	"niga",
	"nigr",
	"oral",
	"orgy",
	"phuk",
	"phuq",
	"pi55",
	"piss",
	"porn",
	"pusy",
	"rape",
	"scat",
	"sex",
	"s3x",
	"shag",
	"shat",
	"shit",
	"slut",
	"smut",
	"spic",
	"spik",
	"tard",
	"tit",
	"t1t",
	"tits",
	"t1ts",
	"t1t5",
	"twat",
	"wank",
}

Functions

func GenerateToken

func GenerateToken(size int) (string, error)

GenerateToken GenerateRandomString Generates a random token with a given length

func IsClanTagCensored

func IsClanTagCensored(tag string) bool

IsClanTagCensored Returns if the provided clan tag is censored

func IsValidHexCode

func IsValidHexCode(code string) bool

IsValidHexCode Returns if a string is a valid hex code

func SanitizeHTML

func SanitizeHTML(html 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