tool

package
v0.0.0-...-92c2bac Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

BytesToString 没有内存开销的转换

func HideURL

func HideURL(s string) string

HideURL 转义 URL 以避免审核

func Int64ToString

func Int64ToString(ID int64) string

转字符串

func JoinTypeAndPadString

func JoinTypeAndPadString(types, padString string) string

JoinTypeAndPadString结果和type的组合数据

func MergeIntToInt64

func MergeIntToInt64(group, guild int) int64

func MergePadString

func MergePadString(group, guild string) string

40位以下id字符串合并,结果称PadString

func RandSenderPerDayN

func RandSenderPerDayN(uid int64, n int) int

RandSenderPerDayN 每个用户每天随机数 github.com/FloatTech/floatbox/ctxext

func SplitInt64ToInt

func SplitInt64ToInt(x int64) (group, guild int)

func SplitPadString

func SplitPadString(only string) (group, guild string)

40位以下id字符串拆分

func SplitTypeAndPadString

func SplitTypeAndPadString(value string) (types, padString string)

解析JoinTypeAndString结果和type的组合数据

func StringToBytes

func StringToBytes(s string) (b []byte)

StringToBytes 没有内存开销的转换

func StringToInt64

func StringToInt64(ID string) int64

转int64

func WaitWhile

func WaitWhile()

等待其他init加载完毕

Types

This section is empty.

Directories

Path Synopsis
Package rate provides a rate limiter hooker, this package is based on golang.org/x/time/rate
Package rate provides a rate limiter hooker, this package is based on golang.org/x/time/rate

Jump to

Keyboard shortcuts

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