Documentation ¶
Index ¶
- func AutoLoad(ptr any, re string, ps ...any)
- func ComparePasswords(hashedPwd string, plainPwd []byte) bool
- func CopyFile(src, dest string, force bool) error
- func CreateDir(dir string) error
- func CreateFile(path string, content []byte) error
- func CreateMutiDir(path string) error
- func FsIsExist(fs string) bool
- func FsList(filePath string, hasDir bool) ([]string, error)
- func FsRemove(path string, force bool) error
- func GenerateRandomID() string
- func GenerateUUID() string
- func HashAndSaltPassword(pwd []byte) (string, error)
- func LoadComponents(component any)
- func LoadRouters(router any, group *gin.RouterGroup)
- func Md5(src string) string
- func MoveFile(srcFile, destFile string) error
- func ReadFileToString(filePath string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePasswords ¶
ComparePasswords 验证密码
func HashAndSaltPassword ¶
HashAndSaltPassword 密码加密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.