Sameer Ajmani | cda5605 | 2015-01-09 13:49:30 -0500 | [diff] [blame] | 1 | This page links to resources about error handling in Go. |
| 2 | |
| 3 | ## Getting Started |
| 4 | |
| 5 | - Read [Effective Go: Errors](https://golang.org/doc/effective_go.html#errors) |
mbyd916 | 3418e43 | 2017-09-29 17:17:41 +0800 | [diff] [blame] | 6 | - Code [A Tour of Go: Errors](http://tour.golang.org/methods/19) and do the [exercise](http://tour.golang.org/methods/20) |
Sameer Ajmani | cda5605 | 2015-01-09 13:49:30 -0500 | [diff] [blame] | 7 | - Study [The Go Programming Language Specification: Errors](http://golang.org/ref/spec#Errors) |
| 8 | - Study [Package errors](http://golang.org/pkg/errors/) |
| 9 | - Study [func fmt.Errorf](https://golang.org/pkg/fmt/#Errorf) |
| 10 | |
| 11 | ## Standard Practice |
| 12 | |
| 13 | - Read [Why does Go not have exceptions?](http://golang.org/doc/faq#exceptions) |
| 14 | - Read [Error handling and Go](http://blog.golang.org/error-handling-and-go) |
| 15 | - Read [Go by Example: Errors](https://gobyexample.com/errors) |
Sameer Ajmani | 08e93ea | 2015-01-12 22:00:50 -0500 | [diff] [blame] | 16 | - Read [Errors are values](http://blog.golang.org/errors-are-values) |
Sameer Ajmani | a5dc76b | 2015-01-12 11:23:19 -0500 | [diff] [blame] | 17 | - Read [golang/go/wiki: Errors](Errors) |
Sameer Ajmani | cda5605 | 2015-01-09 13:49:30 -0500 | [diff] [blame] | 18 | |
| 19 | ## Advanced Topics |
| 20 | |
| 21 | - Read [Why is my nil error value not equal to nil?](http://golang.org/doc/faq#nil_error) |
| 22 | - Read [Defer, Panic, and Recover](http://blog.golang.org/defer-panic-and-recover) |