utils

package
v0.0.0-...-60aa947 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(keyStr string, dataStr string) ([]byte, error)

AesDecrypt 解密

func AesEncrypt

func AesEncrypt(keyStr string, data []byte) (string, error)

AesEncrypt 加密

func BoolValue

func BoolValue(str string) bool

func CopyObject

func CopyObject(src interface{}, dst interface{}) error

CopyObject 拷贝对象

func FloatValue

func FloatValue(str string) float64

func IntValue

func IntValue(str string, defaultValue int) int

func InterfaceToString

func InterfaceToString(value interface{}) string

func JsonDecode

func JsonDecode(src string, dest interface{}) error

func JsonEncode

func JsonEncode(value interface{}) string

func Md5

func Md5(data string) string

func RandomNumber

func RandomNumber(bit int) int

func Sha256

func Sha256(data string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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