utils

package
v0.0.0-...-4732dcb Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DesensitizeEmailAddress

func DesensitizeEmailAddress(address string, prefixOffset, suffixOffset int, includeDomain bool) string

func EncryptBase64String

func EncryptBase64String(message string) string

func EncryptHmacSha256String

func EncryptHmacSha256String(message, secret string) string

func EncryptMd5String

func EncryptMd5String(message string) string

func GenerateAuthCode

func GenerateAuthCode(length int) string

func GenerateName

func GenerateName(pk uint64, dictionary []string) (result string)

func GenerateNameByDefaultDictionary

func GenerateNameByDefaultDictionary(pk uint64) string

func GenerateToken

func GenerateToken(length int, prefix string) string

func IntegerAliasRoman

func IntegerAliasRoman(number int) (roman string)

func UnifyEncodingToBase64

func UnifyEncodingToBase64(message string, encoding string) (result string, err error)

func ValidateEmailAddress

func ValidateEmailAddress(address string, allowedDomain map[string]struct{}) (valid, allowed bool)

func ValidateHtmlContent

func ValidateHtmlContent(content string, contentEncoding string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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