add go errors

main
Nguyen Tran Hau 2020-07-13 16:40:47 +07:00
parent cad5eb4a3d
commit f9005083d2
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# [errors](https://golang.org/pkg/errors/)
Wrap error:
```go
err := fmt.Errorf("Something wrong: %w", rootErr)
```
Unwrap error:
```go
rootErr := errors.Unwrap(err)
```

View File

@ -44,6 +44,7 @@
- [ANTLR](Development/ANTLR/README.md) - [ANTLR](Development/ANTLR/README.md)
- [Condition](Development/ANTLR/Condition.md) - [Condition](Development/ANTLR/Condition.md)
- [Go](Development/Go/README.md) - [Go](Development/Go/README.md)
- [errors](Development/Go/errors.md)
- [strings](Development/Go/strings.md) - [strings](Development/Go/strings.md)
- [testing](Development/Go/testing.md) - [testing](Development/Go/testing.md)
- [time](Development/Go/time.md) - [time](Development/Go/time.md)