package
0.0.14
Repository: https://github.com/xmkuban/utils.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
=================== CBC ======================.
=================== CFB ======================.
=================== ECB ======================.
任意进制转10进制.
No description provided by the author
No description provided by the author
Condition 模拟三元运算.
DecimalToFloat 将 decimal.Decimal 转换为 float64。.
No description provided by the author
No description provided by the author
No description provided by the author
FloatAddNum 以高精度加法的方式精确地添加两个浮点数。 这样做可以避免浮点数运算带来的精度损失。.
FloatDivNum 精确地计算两个浮点数的商,支持指定的小数位数。.
No description provided by the author
No description provided by the author
FloatExponentToStr 计算浮点数的幂,并以字符串形式返回。.
No description provided by the author
FloatMulNum 精确地计算两个浮点数的乘积,支持指定的小数位数。.
FloatSubNum 以高精度减法的方式精确地减去两个浮点数。.
No description provided by the author
GetDockerLocalIP 获取本地ip.
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
No description provided by the author
No description provided by the author
LockExtendTime 延长锁的使用,针对大时间事务需要延长锁的情况.
MaxInt 返回两个整数中的最大值。.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MinInt 返回两个整数中的最小值。.
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
MMerge 2个map合并.
No description provided by the author
No description provided by the author
MStrDdf 如果map里面的key不是目标key,则返回def,否则返回key对应的value.
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
SecondTimestampToTime 将时间戳转成 time.Time.
No description provided by the author
No description provided by the author
No description provided by the author
StringToDate attempts to parse a string into a time.Time type using a predefined list of formats.
No description provided by the author
No description provided by the author
No description provided by the author
ToBool casts an interface to a bool type.
ToBoolE casts an interface to a bool type.
ToDuration casts an interface to a time.Duration type.
ToDurationE casts an interface to a time.Duration type.
ToFloat32 casts an interface to a float32 type.
ToFloat32E casts an interface to a float32 type.
ToFloat64 casts an interface to a float64 type.
ToFloat64E casts an interface to a float64 type.
ToInt casts an interface to an int type.
ToInt16 casts an interface to an int16 type.
ToInt16E casts an interface to an int16 type.
ToInt32 casts an interface to an int32 type.
ToInt32E casts an interface to an int32 type.
ToInt64 casts an interface to an int64 type.
ToInt64E casts an interface to an int64 type.
ToInt8 casts an interface to an int8 type.
ToInt8E casts an interface to an int8 type.
ToIntE casts an interface to an int type.
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
ToString casts an interface to a string type.
ToStringE casts an interface to a string type.
ToTime casts an interface to a time.Time type.
ToTimeE casts an interface to a time.Time type.
ToUint casts an interface to a uint type.
ToUint16 casts an interface to a uint16 type.
ToUint16E casts an interface to a uint16 type.
ToUint32 casts an interface to a uint32 type.
ToUint32E casts an interface to a uint32 type.
ToUint64 casts an interface to a uint64 type.
ToUint64E casts an interface to a uint64 type.
ToUint8 casts an interface to a uint8 type.
ToUint8E casts an interface to a uint type.
ToUintE casts an interface to a uint type.
ZeroDateByTime 获取日期对应的0点时间.
ZeroDateByTimestamp 通过时间戳转成获取日期对应的0点时间.
ZeroMillSecondTimestampByTime 获取日期对应的0点时间戳,单位ms.
ZeroMillSecondTimestampByTimestamp 通过时间戳转成获取日期对应的0点时间戳.
ZeroSecondTimestampByTime 获取日期对应的0点时间戳,单位s.

# Constants

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

# Type aliases

No description provided by the author