blob: d39a81b60d0accd68425931757da22d474332ce0 [file] [log] [blame] [view]
Sameer Ajmanicda56052015-01-09 13:49:30 -05001This page links to resources about error handling in Go.
2
3## Getting Started
4
Sean Liao3c9c9e12022-01-22 17:27:16 +01005- Read [Effective Go: Errors](https://go.dev/doc/effective_go#errors)
mbyd9163418e432017-09-29 17:17:41 +08006- Code [A Tour of Go: Errors](http://tour.golang.org/methods/19) and do the [exercise](http://tour.golang.org/methods/20)
Sean Liao3c9c9e12022-01-22 17:27:16 +01007- Study [The Go Programming Language Specification: Errors](https://go.dev/ref/spec#Errors)
8- Study [Package errors](https://pkg.go.dev/errors/)
9- Study [func fmt.Errorf](https://pkg.go.dev/fmt/#Errorf)
Sameer Ajmanicda56052015-01-09 13:49:30 -050010
11## Standard Practice
12
Sean Liao3c9c9e12022-01-22 17:27:16 +010013- Read [Why does Go not have exceptions?](https://go.dev/doc/faq#exceptions)
14- Read [Error handling and Go](https://go.dev/blog/error-handling-and-go)
Sameer Ajmanicda56052015-01-09 13:49:30 -050015- Read [Go by Example: Errors](https://gobyexample.com/errors)
Sean Liao3c9c9e12022-01-22 17:27:16 +010016- Read [Errors are values](https://go.dev/blog/errors-are-values)
17- Read [Working with Errors in Go 1.13](https://go.dev/blog/go1.13-errors)
Sameer Ajmania5dc76b2015-01-12 11:23:19 -050018- Read [golang/go/wiki: Errors](Errors)
Sameer Ajmanicda56052015-01-09 13:49:30 -050019
20## Advanced Topics
21
Sean Liao3c9c9e12022-01-22 17:27:16 +010022- Read [Why is my nil error value not equal to nil?](https://go.dev/doc/faq#nil_error)
23- Read [Defer, Panic, and Recover](https://go.dev/blog/defer-panic-and-recover)