All challenges
Multiple ChoiceIntermediate 30s

Go: errors.As

errors.As(err, &target) extracts:
Options
  1. 1The error string, matched by substring
  2. 2A specific error type from the chain
  3. 3The stack trace, matched by call frame
  4. 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.

Play this in a 3-minute battle