utils

package
v0.0.0-...-ea7d51e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSign

func CheckSign(sign, key, t, none string, data interface{}) error

func CreateUserName

func CreateUserName() string

CreateUserName create user_name

func GetAppKey

func GetAppKey() (string, error)

GetAppKey get key

func GetSecret

func GetSecret(key string) (string, error)

GetSecret get secret

func IsEmailValid

func IsEmailValid(email string) bool

IsEmailValid check if email is valid

func IsPasswordValid

func IsPasswordValid(password string) bool

IsPasswordValid check if password is valid

func IsUserNameValid

func IsUserNameValid(userName string) bool

IsUserNameValid check if userName is valid

func RandStr

func RandStr(n int) string

RandStr generate random string

Types

This section is empty.

Jump to

Keyboard shortcuts

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