Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Go
/
Go
A sentinel has been wrapped twice. Which check preserves the caller contract?
from Go
advanced
1 min
A sentinel has been wrapped twice. Which check preserves the caller contract?
Call `errors.Is(err, sentinel)`.
Compare the outer error directly with `err == sentinel`.
Search `err.Error()` for the sentinel message.
Check
Ask AI about this kata
Report an error
previous kata
Which statement about deferred calls is correct?
Quiz
next kata
A map may legitimately store zero. How should code distinguish an absent key from a prese…
Quiz
A new version is available
Reload