utils

package
v0.0.0-...-22bb83e Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Directory = new(_directory)
View Source
var Email = new(_email)
View Source
var File = new(file)
View Source
var Server = new(server)

Functions

func ArrayToString

func ArrayToString(array []interface{}) string

@author: [SliverHorn](https://github.com/SliverHorn) @description: 将数组格式化为字符串

func BoolToInt

func BoolToInt(b bool) int

func CompareHashAndPassword

func CompareHashAndPassword(p1 string, p2 string) bool

PasswordCheck 密码检查(工具类) p1 数据库密码 p2 前端传递密码 false 校验失败

func EncryptedPassword

func EncryptedPassword(p1 string) (p2 string, err error)

EncryptedPassword: 加密密码(工具类)

func IntToBool

func IntToBool(i int) bool

func MD5V

func MD5V(str []byte) string

func StructToMap

func StructToMap(obj interface{}) map[string]interface{}

@author: [SliverHorn](https://github.com/SliverHorn) @description: 利用反射将结构体转化为map

func ZipFiles

func ZipFiles(filename string, files []string, oldForm, newForm 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