package
0.0.12
Repository: https://github.com/meow-pad/persian.git
Documentation: pkg.go.dev

# Functions

Cast @Description: 类型转换 @param origin any 原始对象 @return value V.
CatchPanicError @Description: 捕捉panic错误 @param errMsg string @param fields ...zap.Field.
HandlePanicError @Description: 处理panic错误 @param errMsg @param handleFunc @param fields.
No description provided by the author
No description provided by the author
No description provided by the author
SafeRunAnyParams @Description: 安全执行函数 @param function func(params ...any) error @param params ...any 函数参数 @return resultErr error 执行结果 或 运行时异常.
SafeRunReflect @Description: 以反射的方式执行函数 @param fn 函数 @param args 参数集合 @return resultErr 执行结果(结果集中最后一个error) 或 运行时异常.
SafeRunSimple @Description: 安全执行函数 @param function func() 函数 @return resultErr 执行结果.
SafeRunWithContext @Description: 安全执行函数 @param function 带参数 `context.Context` 的函数 @param ctx `context.Context` 对象 @return resultErr 执行结果 或 运行时异常.