utils

package
v0.0.0-...-674f2a3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(password, hashedPassword string) bool

func Decrypt

func Decrypt(text *[]byte)

func Encrypt

func Encrypt(text *[]byte)

func GetPaginationParams

func GetPaginationParams(URL url.Values) struct {
	Limit  int32
	Offset int32
}

func HasNonPatternChars

func HasNonPatternChars(s, pattern string) bool

HasNonPatternChars checks if the string contains characters that don't match the given pattern.

func SaveBase64ToFile

func SaveBase64ToFile(base64String, storageDir string) (string, error)

func ValidateLogin

func ValidateLogin(login string) error

ValidateLogin checks if the login is either a valid username or a valid email address.

func ValidatePassword

func ValidatePassword(password string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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