github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/testdata/map.txt (about) 1 map length: 2 2 map read: answer = 42 3 answer = 42 4 foo = 3 5 map length: 1 6 map read: data = 3 7 data = 3 8 map length: 12 9 map read: three = 3 10 eight = 8 11 eleven = 11 12 five = 5 13 four = 4 14 nine = 9 15 one = 1 16 seven = 7 17 six = 6 18 ten = 10 19 three = 3 20 twelve = 12 21 two = 2 22 map length: 12 23 map read: ten = 10 24 eight = 8 25 eleven = 11 26 five = 5 27 four = 4 28 nine = 9 29 one = 1 30 seven = 7 31 six = 6 32 ten = 10 33 three = 3 34 twelve = 12 35 two = 2 36 map length: 11 37 map read: seven = 7 38 eight = 8 39 eleven = 11 40 five = 5 41 four = 4 42 nine = 9 43 one = 1 44 seven = 7 45 ten = 10 46 three = 3 47 twelve = 12 48 two = 2 49 lookup with comma-ok: eight 8 true 50 lookup with comma-ok: nokey 0 false 51 false true 2 52 true false 0 53 nilmap: 0 54 4 55 42 56 nilbinmap: 0 57 4321 58 5555 59 itfMap[3]: 0 60 itfMap[3.14]: 3 61 itfMap[8]: 8 62 itfMap[uint8(8)]: 80 63 itfMap["eight"]: 800 64 itfMap[[2]int{5, 2}]: 52 65 itfMap[true]: 1 66 itfMap[8]: 0 67 itfMap: found key "eight": 800 68 floatMap[42]: 84 69 floatMap[43]: 0 70 floatMap[42]: 0 71 floatMap key, value: +3.140000e+000 6 72 structMap[{"tau", 6.28}]: 5 73 structMap[{"Tau", 6.28}]: 0 74 structMap[{"tau", 3.14}]: 0 75 structMap[{"tau", 6.28}]: 0 76 tested preallocated map 77 tested growing of a map 78 2 79 2 80 2 81 2 82 done 83 no interface lookup failures