← Back to archive

Stdle #126 · classes · 2026-10-10

What does this Go snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

package main
import "fmt"
type Pt struct{ X, Y int }
func main() {
a := Pt{1, 2}
b := Pt{1, 2}
fmt.Println(a == b)
}
Classes
4 attempts left

Answer & explanation