mirror of
https://github.com/astaxie/beego.git
synced 2024-11-05 14:50:58 +00:00
32 lines
352 B
Markdown
32 lines
352 B
Markdown
|
errors
|
||
|
======
|
||
|
|
||
|
增强型errors包(for golang)
|
||
|
--------------------------
|
||
|
|
||
|
完全兼容官方的errors包,且附带堆栈信息,方便debug
|
||
|
----------------------------------------------
|
||
|
|
||
|
API完全兼容
|
||
|
|
||
|
安装
|
||
|
----
|
||
|
|
||
|
```
|
||
|
go get github.com/wendal/errors
|
||
|
```
|
||
|
|
||
|
使用
|
||
|
----
|
||
|
|
||
|
仅需将
|
||
|
```
|
||
|
import errors
|
||
|
```
|
||
|
|
||
|
改为
|
||
|
```
|
||
|
import github.com/wendal/errors
|
||
|
```
|
||
|
|