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
/
Error handling
Given an error chain that may contain *PathError, which use of errors.As is correct?
from Error handling
Go 1.27
intermediate
1 min
Given an error chain that may contain *PathError, which use of errors.As is correct?
var target *PathError; errors.As(err, &target)
target := PathError{}; errors.As(err, target)
var target **PathError; errors.As(err, target)
errors.As(err, PathError{})
Check
Ask AI about this kata
Report an error
next kata
Which statement about errors.Join is correct?
Quiz
A new version is available
Reload