utils

package
v0.0.0-...-432dbe7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDecodeCardText

func GetDecodeCardText(code, secretKey string) (string, error)

GetDecodeCardText 解密卡号字符串数据,需要进一步解析

func GetJsonMap

func GetJsonMap(source map[string]interface{}) (body []byte)

func GetMD5Base64

func GetMD5Base64(bytes []byte) (base64Value string)

func GetTimeInFormatISO8601

func GetTimeInFormatISO8601() (timeStr string)

func GetTimeInFormatRFC2616

func GetTimeInFormatRFC2616() (timeStr string)

func GetUUID

func GetUUID() (uuidHex string)

func GetUrlFormedMap

func GetUrlFormedMap(source map[string]string) (urlEncoded string)

func InitStructWithDefaultTag

func InitStructWithDefaultTag(bean interface{})

func RandStringBytes

func RandStringBytes(n int) string

func StructToMap

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

Types

type Debug

type Debug func(format string, v ...interface{})

func Init

func Init(flag string) Debug

type UUID

type UUID [16]byte

func NewUUID

func NewUUID() UUID

func (UUID) String

func (u UUID) String() string

Jump to

Keyboard shortcuts

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