package
module
Version:
v1.1.2
Opens a new window with list of versions in this module.
Published: Mar 17, 2019
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 18
Opens a new window with list of known importers.
README
¶
错误信息帮助类
返回一个 error ,同时包括自定义的说明及原始的错误信息
host,err:=os.hostname();
if err!=nil{
return goerr.NewError(err,"取主机名时出错")
}
Documentation
¶
func Error(err error) *errorContext
new errorContext with error
return error
new errorContext with error and string
return error
func String(format string, p ...interface{}) *errorContext
new errorContext with string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.