helper

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPwd

func GetPwd(str, rand_str, rand_num string) string

加密字符串 生成密码 原字符串sha1 从0截取用户rand_str长度之后的字符,将其拼接于rand_str之后 得字符串1 字符串1 从末尾截取 rand_num 长度的之前字符,将rand_num 拼接于其后得 字符串2 字符串2 进行MD5摘要 得密码值

func GetToken

func GetToken(str, str2 string, lenstr int) string

func Int64ToString

func Int64ToString(i int64) string

func IntToString

func IntToString(i int) string

func StrArrayTrim

func StrArrayTrim(strs []string) []string

func StrExplode

func StrExplode(delimiter, str string) []string

func StrToInt

func StrToInt(number string) int

func StrToInt32

func StrToInt32(number string) int32

func StrToInt64

func StrToInt64(number string) int64

func StringToArray

func StringToArray(str string) []int64

func StructToMap

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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