Go Reference: Error Wrapping with %w, errgroup Fan-out, Table Tests, and Context Patterns
Go patterns — the idioms that make Go code actually idiomatic.
Error wrapping — context without losing the original
// fmt.Errorf with %w wraps for errors.Is and errors.As
func getUser(id int) (*User, error) {
user, err := db.Query(id)
if err...
releaserun.hashnode.dev2 min read