util

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashPwd

func CompareHashPwd(p1, p2 string) bool

func InList

func InList[ListType comparable](list []ListType, val ListType) bool

func IsEmail

func IsEmail(email string) bool

func IsPhone

func IsPhone(phone string) bool

func MD5

func MD5(in []byte) string

func MD5ToUpper

func MD5ToUpper(in []byte) string

func ParsePwd

func ParsePwd(password string) string

func ToUint32

func ToUint32(in string) uint32

func Transform

func Transform(in any, dst any) error

Types

type ListType

type ListType interface {
	~string | ~int | ~uint32 | ~[]byte | ~rune | ~float64
}

Jump to

Keyboard shortcuts

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