Documentation ¶
Index ¶
- Variables
- func AuthToken(tokenString string) (string, error)
- func BoolToInt(b bool) int
- func Camel2Case(name string) string
- func Decrypt(password string, obtenationIterations int, cipherText string, salt []byte) (string, error)
- func DownImg(url string) (string, error)
- func EncodeMD5(value string) string
- func Encrypt(password string, obtenationIterations int, plainText string, salt []byte) (string, error)
- func GetUUID() string
- func InArrar(key string, arr []string) bool
- func JoinInt(ints []int, sep string) string
- func JoinInt64(ints []int64, sep string) string
- func Lcfirst(str string) string
- func MD5Sum(txt string) (sum string)
- func MapToStatus(a interface{}, b map[string]interface{}, c interface{}) error
- func NeweDecode(str string) int64
- func NeweEncode(num int64) string
- func RandKey(length int) (string, string)
- func SetToken(uuid string) (string, error)
- func SplitInt(str, sep string) []int
- func SplitInt64(str, sep string) []int64
- func StAtoB(a, b, c interface{}) error
- func Struct2Map(obj interface{}) map[string]interface{}
- func Ucfirst(str string) string
- func WriteImg(src multipart.File) (string, error)
- type Buffer
- type PageList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Newekey = "2GrE5hsXx0URawilALpj6zNnQ47odFqm" Newescret = "1389bcefgktuvyBCDHIJKMOPSTVWYZ" )
Functions ¶
func Decrypt ¶
func Decrypt(password string, obtenationIterations int, cipherText string, salt []byte) (string, error)
PBE解密
func Encrypt ¶
func Encrypt(password string, obtenationIterations int, plainText string, salt []byte) (string, error)
PBE加密
func MapToStatus ¶
func SplitInt64 ¶
func Struct2Map ¶
func Struct2Map(obj interface{}) map[string]interface{}
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.