tool

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(ciphertext string, key []byte) (string, error)

AesDecrypt 解密函数

func AesEncrypt

func AesEncrypt(plaintext, key []byte) (string, error)

AesEncrypt 加密函数

func PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) ([]byte, error)

func PanicTrace

func PanicTrace(kb int) []byte

PanicTrace trace panic stack info.

func RemoveElements added in v1.8.1

func RemoveElements[T comparable](source []T, toRemove []T) []T

RemoveElements 泛型版本,可用于任何可比较类型

func Sha3

func Sha3(txt string) string

func Unique added in v1.8.1

func Unique[T comparable](items []T) []T

去重切片

Types

This section is empty.

Jump to

Keyboard shortcuts

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