util

package
v0.0.0-...-89bec85 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CstZone = time.FixedZone("CST", 8*3600) // 东八

Functions

func CamelString

func CamelString(s string) string

CamelString xx_yy to XxYy

func Des3EcbPkcs5PaddingDecryptBase64String

func Des3EcbPkcs5PaddingDecryptBase64String(src string, key []byte) (string, error)

func Des3EcbPkcs5PaddingEncryptBase64String

func Des3EcbPkcs5PaddingEncryptBase64String(src string, key []byte) (string, error)

func GenerateDatabaseID

func GenerateDatabaseID() string

func GenerateRequestID

func GenerateRequestID() string

func GetTimeFromDatabaseId

func GetTimeFromDatabaseId(id string) (t time.Time, err error)

func GetTimeFromRequestId

func GetTimeFromRequestId(id string) (t time.Time, err error)

func Md5

func Md5(str string) string

func SnakeString

func SnakeString(s string) string

SnakeString XxYy to xx_yy , XxYY to xx_yy

func Unicode2Zh

func Unicode2Zh(form string) (to string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳