Changes in new versions / Go 1.20
errors.Join combines multiple errors
Multiple %w verbs in fmt.Errorf
errors.Is sees into an errors.Join result
context.WithCancelCause / context.Cause
Slice-to-array conversion
context.WithCancelCause / context.Cause
This example is in the full version, available in the app stores:
Golang Recipes
App Store
Code Recipes
App Store
Already bought it? Sign in to your account