mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-18 15:02:09 +00:00
17 lines
251 B
Go
17 lines
251 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestMap(t *testing.T) {
|
|
person := map[string]interface{}{
|
|
"name": "ming",
|
|
"age": 18,
|
|
"home": "beijing",
|
|
}
|
|
t.Logf("len(person): %v", len(person))
|
|
|
|
for i, n := range person {
|
|
t.Logf("%v: %v", i, n)
|
|
}
|
|
}
|