Intermediate
Go (Golang)
Q70 / 100
What is the error interface in Go?
Correct! Well done.
Incorrect.
The correct answer is B) A built-in interface with a single Error() string method
B
Correct Answer
A built-in interface with a single Error() string method
Explanation
type error interface { Error() string } — any type implementing Error() string satisfies the error interface. Create with errors.New() or fmt.Errorf().
Progress
70/100