modulepackage
1.0.5
Repository: https://github.com/go-spring/spring-utils.git
Documentation: pkg.go.dev
# README
spring-utils
# Functions
BASE64 返回 BASE64 加密后的字符串.
Cause 获取封装的异常源.
ContainsInt 在一个 int 数组中进行查找,找不到返回 -1。.
ContainsString 在一个 string 数组中进行查找,找不到返回 -1。.
CopyBeanUseJson 使用 json 序列化框架进行拷贝,支持匿名字段,支持类型转换。.
CurrentMilliSeconds 返回当前的毫秒时间戳.
DefaultBool 将 nil 转换成 false 布尔值.
DefaultString 将 nil 转换成空字符串.
Deprecated: Use "strings.EqualFold" instead.
ErrorToString 获取 error 的字符串.
ErrorWithFileLine 返回错误发生的文件行号.
FileLine 获取函数所在文件、行数以及函数名.
FindInList 查询列表中是否存在指定元素,存在则返回列表项指针.
Indirect 解除 Type 的指针.
IsNil 返回 reflect.Value 的值是否为 nil,比原生方法更安全.
LocalIPv4 获取本机的 IPv4 地址.
MD5 获取 MD5 计算后的字符串.
MilliSeconds 返回 Duration 对应的毫秒时间.
NewList 使用指定的元素创建列表.
NewPanicCond PanicCond 的构造函数.
Panic 抛出一个异常值.
Panicf 抛出一段需要格式化的错误字符串.
SafeCloseChan 安全地关闭一个管道.
ToInt16SliceE casts an interface to a []int16 type.
ToInt32SliceE casts an interface to a []int32 type.
ToInt64SliceE casts an interface to a []int64 type.
ToInt8SliceE casts an interface to a []int8 type.
ToIntSliceE casts an interface to a []int type.
ToJson 对象转 Json 字符串.
ToUint16SliceE casts an interface to a []uint16 type.
ToUint32SliceE casts an interface to a []uint32 type.
ToUint64SliceE casts an interface to a []uint64 type.
ToUint8SliceE casts an interface to a []uint8 type.
ToUintSliceE casts an interface to a []uint type.
ValuePatch 开放 Value 的私有字段,但是不会更新外部传入的 Value。.
ValuePatchIf allAccess 为 true 时开放 Value 的私有字段,但是不会更新外部传入的 Value。.
WithCause 封装一个异常源.