Multiple ChoiceIntermediate 30s
Go: errors.As
errors.As(err, &target) extracts:
Options
- 1The error string, matched by substring
- 2A specific error type from the chain
- 3The stack trace, matched by call frame
- 4The error code, matched by integer
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.