blob: 989ad9c058f5aff43756055be4fccb801f01a2e3 [file] [log] [blame]
// +build ignore,OMIT
package main
import (
"fmt"
"sort"
)
func main() {
hellos := map[string]string{ // HLbuiltin
"English": "Hello", // HLstrings
"Mandarin": "您好", // HLstrings
"Hindi": "नमस्कार", // HLstrings
}
fmt.Println(hellos) // HLfmt
var langs []string // HLbuiltin
for lang, hello := range hellos { // HLbuiltin
fmt.Println(lang, ":", hello, "world!") // HLfmt
langs = append(langs, lang) // HLbuiltin
}
sort.Strings(langs) // HLstrings
fmt.Printf("len(%v) = %d", langs, len(langs)) // HLfmt
}