package
Version:
v1.2.14
Opens a new window with list of versions in this module.
Published: Aug 7, 2019
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
*
自定义错误类型,一般用在api/微服务等业务逻辑中,处理错误
支持是否输出堆栈信息,可以把stack信息记录到日志文件中,方便定位问题
type ErrorString struct {
Code int
}
实现了error interface{} Error方法
Source Files
¶
Click to show internal directories.
Click to hide internal directories.