util

package
v0.0.0-...-cf331e6 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MPL-2.0 Imports: 15 Imported by: 0

README

utils 工具类说明

说明
Bytes []byte相关操作
GuBuffer 低性能的[]byte快速处理工具
GuLog 控制台彩色Log工具
GuStr string相关拓展功能
upder udp组件

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinToHex

func BinToHex(Bin []byte) string

func BinToHex2

func BinToHex2(Bin *[]byte) string

func Decrypt

func Decrypt(key, bin []byte) (ret []byte)

func Encrypt

func Encrypt(key, bin []byte) []byte

func GenECDHKey

func GenECDHKey() (PublicKey, ShareKey []byte)

func GetRand32

func GetRand32() uint32

func GetRandomBin

func GetRandomBin(l int) []byte

func GetServerCurTime

func GetServerCurTime() int64

func Guid2Md5Bytes

func Guid2Md5Bytes(GuidData string) []byte

func HexToBin

func HexToBin(HexData string) []byte

func IntToIp

func IntToIp(i int32) string

func IpToInt

func IpToInt(Ip string) int64

func NewCipher

func NewCipher(key []byte) *teaCipher

func RandUint32

func RandUint32(min, max uint32) uint32

Types

This section is empty.

Directories

Path Synopsis
* @Author: Trial * @email: shenpan233@vip.qq.com * @app: 发送 * @Creat: 2021/11/27 0027 13:10
* @Author: Trial * @email: shenpan233@vip.qq.com * @app: 发送 * @Creat: 2021/11/27 0027 13:10

Jump to

Keyboard shortcuts

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