Typed-nil pointer assigned to named error return in Go defer produces non-nil error interface with <nil> value
Language: Go · Versions: Go 1.24 The problem I have a function using a named return parameter (err error) and a defer block that logs or wraps cleanup errors from a custom TxError…
2 posts ·