Stdle #111 · interfaces · 2026-09-25
What does this Go snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
package main import "fmt" type myErr struct{} func (myErr) Error() string { return "x" } func main() { var e error = myErr{} fmt.Println(e == nil, e != nil)}Interfaces