Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyGointerfaces and satisfactionSingle-choice MCQ

What does comparing a nil-typed pointer wrapped in an interface to nil print?

type E struct{} func (e *E) Error() string { return "boom" } func get() error { var e *E = nil return e } fmt.Println(get() == nil)