MCPcopy
hub / github.com/RainbowMango/GoExpertProgramming / PrintNames

Function PrintNames

source/gotest/example.go:17–26  ·  view source on GitHub ↗

PrintNames 打印学生姓名

()

Source from the content-addressed store, hash-verified

15
16// PrintNames 打印学生姓名
17func PrintNames() {
18 students := make(map[int]string, 4)
19 students[1] = "Jim"
20 students[2] = "Bob"
21 students[3] = "Tom"
22 students[4] = "Sue"
23 for _, value := range students {
24 fmt.Println(value)
25 }
26}

Callers 1

ExamplePrintNamesFunction · 0.92

Calls

no outgoing calls

Tested by 1

ExamplePrintNamesFunction · 0.74