← Back to archive

Stdle #118 · strings · 2026-10-02

What does this Go snippet output?

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

package main
import (
"fmt"
"unicode/utf8"
)
func main() {
fmt.Println(utf8.RuneCountInString("世界!"))
}
Strings
4 attempts left

Answer & explanation