1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 15:40:19 +00:00

update mod

This commit is contained in:
astaxie
2018-11-09 12:37:28 +08:00
parent 9fdc1eaf3a
commit 5ea04bdfd3
548 changed files with 339257 additions and 46 deletions

22
vendor/github.com/wendal/errors/.gitignore generated vendored Normal file
View File

@ -0,0 +1,22 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
# Folders
_obj
_test
# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go
*.exe

31
vendor/github.com/wendal/errors/README.md generated vendored Normal file
View File

@ -0,0 +1,31 @@
errors
======
增强型errors包(for golang)
--------------------------
完全兼容官方的errors包,且附带堆栈信息,方便debug
----------------------------------------------
API完全兼容
安装
----
```
go get github.com/wendal/errors
```
使用
----
仅需将
```
import errors
```
改为
```
import github.com/wendal/errors
```

30
vendor/github.com/wendal/errors/errors.go generated vendored Normal file
View File

@ -0,0 +1,30 @@
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// And Modify By Wendal (wendal1985@gmail.com)
// Package errors implements functions to manipulate errors.
package errors
import (
"runtime/debug"
)
var AddStack = true
// New returns an error that formats as the given text.
func New(text string) error {
if AddStack {
text += "\n" + string(debug.Stack())
}
return &errorString{text}
}
// errorString is a trivial implementation of error.
type errorString struct {
s string
}
func (e *errorString) Error() string {
return e.s
}