Documentation ¶
Index ¶
- func ComparePwd(hashPwd string, plainPwd []byte) bool
- func Contains(array interface{}, val interface{}) (index int)
- func Convert(array interface{}) string
- func EncodeMD5(value string) string
- func GetClientIP(c *gin.Context) string
- func GetFrontLimit(c *gin.Context) int
- func GetFrontPage(c *gin.Context) int
- func GetKeys(m map[string]string) []string
- func GetPage(c *gin.Context) int
- func GetSize(c *gin.Context) int
- func GetSum(m []int) int
- func GetTotalPage(total, size int) int
- func GetValues(m map[string]string) []string
- func HashAndSalt(pwd []byte) string
- func Int64ToInt(num int64) int
- func IntToBool(num int8) bool
- func RandomNumber(length int) string
- func ReturnQ(length int) string
- func StructColumn(desk, input interface{}, columnKey, indexKey string) (err error)
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientIP ¶
func GetFrontLimit ¶
func GetFrontPage ¶
func GetTotalPage ¶
func Int64ToInt ¶
func StructColumn ¶
实现 php 中的array_column 方法 @param desk [slice|map] 指针类型,方法最终的存储位置 @param input []struct,待转换的结构体切片 @param columnKey string @param indexKey string
Types ¶
Click to show internal directories.
Click to hide internal directories.