← Back to archive

Stdle #92 · slices · 2026-09-06

What does this Go snippet output?

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

package main
import "fmt"
func main() {
var s []string
s = append(s, "go")
fmt.Printf("%q %d\n", s, len(s))
}
Slices
4 attempts left

Answer & explanation