← Back to archive

Stdle #56 · maps · 2026-08-01

What does this Go snippet output?

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

package main
import "fmt"
func main() {
m := map[string]string{}
s := m["key"]
fmt.Println(len(s), s == "")
}
Maps
4 attempts left

Answer & explanation