← Back to archive

Stdle #115 · slices · 2026-09-29

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 []int
t := append(s, 1)
fmt.Println(s, t)
}
Slices
4 attempts left

Answer & explanation