A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
stdle-92.go
1packagemain
2
3import"fmt"
4
5funcmain(){
6vars[]string
7s=append(s,"go")
8fmt.Printf("%q %d\n",s,len(s))
9}
Slices
Answer & explanation
Console output
["go"] 1
Why
A nil []string accepts append just like any slice, producing a one-element slice. The %q verb applied to a slice of strings prints each element quoted inside brackets, so s formats as ["go"] and its length is 1.