Categorygithub.com/cyruslo/util
modulepackage
0.0.4
Repository: https://github.com/cyruslo/util.git
Documentation: pkg.go.dev

# README

util

# Packages

* @Author: your name * @Date: 2021-05-06 14:10:29 * @LastEditTime: 2021-05-11 14:59:35 * @LastEditors: your name * @Description: In User Settings Edit * @FilePath: \airbattle\internal\logic\logcache\stat_define.go */.
No description provided by the author
No description provided by the author

# Functions

AssertArray 判断传入参数是否Slice/Array.
AssertContainer 判断传入参数是否Map/Slice/Array.
No description provided by the author
Cancel stop timer by timer id.
只能确定1开头,第二位3-9,没有其他确定依据.
No description provided by the author
No description provided by the author
No description provided by the author
Filter 筛选Map/Slice/Array.
find 筛选Map/Slice/Array.
No description provided by the author
No description provided by the author
Foreach 遍历容器元素执行visitor container必须是Map/Slice/Array.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
M个里取N个.
No description provided by the author
No description provided by the author
No description provided by the author
GetRandomElement 使用轮盘算法随机从容器中获取一个元素 元素必须实现IWheelItem接口.
No description provided by the author
No description provided by the author
int转到string.
int64转到string.
No description provided by the author
int转到string.
No description provided by the author
No description provided by the author
Loop start timer in millsecond.
Loop with lock start timer in millsecond.
No description provided by the author
No description provided by the author
No description provided by the author
Once run once after delay millsecond.
No description provided by the author
RandCheck 随机测试, ratio / base 的概率返回true.
No description provided by the author
No description provided by the author
RandomClosed get random num [min,max].
RandomFloat get random num [min,max].
RandomSemiClosed get random num [min,max).
No description provided by the author
ReplaceEscapeChar 去掉字符串里包含的转义字符.
No description provided by the author
整数保留最高几位非零,其他位数补零.
Shuffle 洗牌.
No description provided by the author
string、int、int64相互转换string转到int.
string转到int32.
string转到int64.
No description provided by the author
No description provided by the author
No description provided by the author
ToString 效率不高,频繁调用的话用其他实现方法.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
保留10000以下的timer id作为全局id.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

轮盘概率接口.

# Type aliases

No description provided by the author
No description provided by the author