-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1bbe07f
commit 22f80fb
Showing
1,491 changed files
with
211,316 additions
and
956 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.go] | ||
indent_style = tab | ||
|
||
[{Makefile, *.mk}] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: 2 | ||
cli: | ||
server: https://app.fossa.com | ||
fetcher: custom | ||
project: emperror.dev/errors | ||
analyze: | ||
modules: | ||
- name: emperror.dev/errors | ||
type: go | ||
target: emperror.dev/errors | ||
strategy: gomodules | ||
path: . | ||
options: | ||
allow-unresolved: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/bin/ | ||
/build/ | ||
/vendor/ | ||
|
||
/.env.test | ||
/docker-compose.override.yml | ||
|
||
# IDE integration | ||
/.idea/* | ||
!/.idea/codeStyles/ | ||
!/.idea/copyright/ | ||
!/.idea/*.iml | ||
!/.idea/externalDependencies.xml | ||
!/.idea/go.imports.xml | ||
!/.idea/modules.xml | ||
!/.idea/runConfigurations/ | ||
!/.idea/scopes/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
run: | ||
skip-dirs: | ||
- tests | ||
skip-files: | ||
- format_test.go | ||
- wrap_go1_12_test.go | ||
- wrap_test.go | ||
|
||
linters-settings: | ||
golint: | ||
min-confidence: 0.1 | ||
goimports: | ||
local-prefixes: emperror.dev/errors | ||
|
||
linters: | ||
enable-all: true | ||
disable: | ||
- funlen | ||
- gomnd | ||
- testpackage | ||
|
||
- godox | ||
|
||
issues: | ||
exclude-rules: | ||
- text: "package comment should not have leading space" | ||
linters: | ||
- golint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# Change Log | ||
|
||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
|
||
## [Unreleased] | ||
|
||
|
||
## [0.8.0] - 2020-09-14 | ||
|
||
### Changed | ||
|
||
- Update dependencies | ||
|
||
|
||
## [0.7.0] - 2020-01-13 | ||
|
||
### Changed | ||
|
||
- Updated dependencies ([github.com/pkg/errors](https://github.com/pkg/errors)) | ||
- Use `WithMessage` and `WithMessagef` from [github.com/pkg/errors](https://github.com/pkg/errors) | ||
|
||
|
||
## [0.6.0] - 2020-01-09 | ||
|
||
### Changed | ||
|
||
- Updated dependencies | ||
|
||
|
||
## [0.5.2] - 2020-01-06 | ||
|
||
### Changed | ||
|
||
- `match`: exported `ErrorMatcherFunc` | ||
|
||
|
||
## [0.5.1] - 2020-01-06 | ||
|
||
### Fixed | ||
|
||
- `match`: race condition in `As` | ||
|
||
|
||
## [0.5.0] - 2020-01-06 | ||
|
||
### Added | ||
|
||
- `match` package for matching errors | ||
|
||
|
||
## [0.4.3] - 2019-09-05 | ||
|
||
### Added | ||
|
||
- `Sentinel` error type for creating [constant error](https://dave.cheney.net/2016/04/07/constant-errors) | ||
|
||
|
||
## [0.4.2] - 2019-07-19 | ||
|
||
### Added | ||
|
||
- `NewWithDetails` function to create a new error with details attached | ||
|
||
|
||
## [0.4.1] - 2019-07-17 | ||
|
||
### Added | ||
|
||
- `utils/keyval` package to work with key-value pairs. | ||
|
||
|
||
## [0.4.0] - 2019-07-17 | ||
|
||
### Added | ||
|
||
- Error details | ||
|
||
|
||
## [0.3.0] - 2019-07-14 | ||
|
||
### Added | ||
|
||
- Multi error | ||
- `UnwrapEach` function | ||
|
||
|
||
## [0.2.0] - 2019-07-12 | ||
|
||
### Added | ||
|
||
- `*If` functions that only annotate an error with a stack trace if there isn't one already in the error chain | ||
|
||
|
||
## [0.1.0] - 2019-07-12 | ||
|
||
- Initial release | ||
|
||
|
||
[Unreleased]: https://github.com/emperror/errors/compare/v0.8.0...HEAD | ||
[0.8.0]: https://github.com/emperror/errors/compare/v0.7.0...v0.8.0 | ||
[0.7.0]: https://github.com/emperror/errors/compare/v0.6.0...v0.7.0 | ||
[0.6.0]: https://github.com/emperror/errors/compare/v0.5.2...v0.6.0 | ||
[0.5.2]: https://github.com/emperror/errors/compare/v0.5.1...v0.5.2 | ||
[0.5.1]: https://github.com/emperror/errors/compare/v0.5.0...v0.5.1 | ||
[0.5.0]: https://github.com/emperror/errors/compare/v0.4.3...v0.5.0 | ||
[0.4.3]: https://github.com/emperror/errors/compare/v0.4.2...v0.4.3 | ||
[0.4.2]: https://github.com/emperror/errors/compare/v0.4.1...v0.4.2 | ||
[0.4.1]: https://github.com/emperror/errors/compare/v0.4.0...v0.4.1 | ||
[0.4.0]: https://github.com/emperror/errors/compare/v0.3.0...v0.4.0 | ||
[0.3.0]: https://github.com/emperror/errors/compare/v0.2.0...v0.3.0 | ||
[0.2.0]: https://github.com/emperror/errors/compare/v0.1.0...v0.2.0 | ||
[0.1.0]: https://github.com/emperror/errors/compare/v0.0.0...v0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2019 Márk Sági-Kazár <mark.sagikazar@gmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is furnished | ||
to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Certain parts of this library are inspired by (or entirely copied from) various third party libraries. | ||
This file contains their licenses. | ||
|
||
github.com/pkg/errors: | ||
Copyright (c) 2015, Dave Cheney <dave@cheney.net> | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
|
||
|
||
github.com/golang/xerrors: | ||
Copyright (c) 2019 The Go Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | ||
|
||
include custom.mk | ||
include main.mk |
Oops, something went wrong.