//
pkg.gl
Category
github.com/violetpupil/gos
std
errors
package
0.0.0-20241103125305-e02cc373744a
Repository:
https://github.com/violetpupil/gos.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
0
Files
27 SLOC
#
Functions
Unwrap
Unwrap 获取底层错误并打印类型.
#
Variables
As
获取 error 树中的指定 error.
Is
error 树是否有指定 error.
Join
包裹多个 error 成一个 返回的 error 实现 Unwrap() []error 方法 返回的 error 字符串为每个 error 用换行连接 传入的 error 都是 nil,返回 nil.
New
使用字符串创建 error.