Syntax updates
- Pointer creation with 'new()'
Syntax update: pointer creation with new().
- Type-safe error unwrapping with 'errors.AsType'
Syntax update: type-safe error unwrapping with errors.AsType Reports usages of errors.As that can be replaced with errors.AsType, a generic function introduced in Go 1.26 that unwraps errors in a type-safe way and returns a typed result directly.
Last modified: 02 March 2026