common

package
v0.0.0-...-253bb2f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MULTIPART_MEMORY = 15 << 20 // 15 MB
	FILE_BUCKET      = "file"

	TIME_FORMAT              = "2006-01-02 15:04:05"
	USER_PASSWORD_MAX_LENGTH = 16
	USER_PASSWORD_MIN_LENGTH = 8
	SPACE                    = " "
	LETTERS_LOWERCASE        = "abcdefghijklmnopqrstuvwxyz"
	LETTERS_UPPERCASE        = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	NUMBER                   = "1234567890"
	EN_SPECIAL_CHAR          = "~`!@#$%^&*()-_=+[{]}\\|;:'\",<.>/?"

	USER_ENABLE  = 1
	USER_DISABLE = 2
)

Variables

This section is empty.

Functions

func IsChineseChar

func IsChineseChar(str string) bool

func PasswordStrengthValidate

func PasswordStrengthValidate(password string, maxLen int, minLen int) (pass bool, err error)

func PasswordValidate

func PasswordValidate(password string, privateKey *rsa2.PrivateKey) (decryptedPassword string, err error)

Types

This section is empty.

Directories

Path Synopsis
ai
llm

Jump to

Keyboard shortcuts

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