Documentation ¶
Index ¶
- Variables
- func ArrayToString(array []interface{}) string
- func BoolToInt(b bool) int
- func CompareHashAndPassword(p1 string, p2 string) bool
- func EncryptedPassword(p1 string) (p2 string, err error)
- func IntToBool(i int) bool
- func MD5V(str []byte) string
- func StructToMap(obj interface{}) map[string]interface{}
- func ZipFiles(filename string, files []string, oldForm, newForm string) error
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 CompareHashAndPassword ¶
PasswordCheck 密码检查(工具类) p1 数据库密码 p2 前端传递密码 false 校验失败
func EncryptedPassword ¶
EncryptedPassword: 加密密码(工具类)
func StructToMap ¶
func StructToMap(obj interface{}) map[string]interface{}
@author: [SliverHorn](https://github.com/SliverHorn) @description: 利用反射将结构体转化为map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.