github.com/solo-io/cue@v0.4.7/encoding/protobuf/textproto/testdata/decoder/map.txtar (about) 1 -- map.cue -- 2 map: {[string]: int} @protobuf(1,map[string]int) 3 4 5 implicit: [string]: string 6 7 intMap: {[string]: int} @protobuf(1,map[int]int) 8 9 -- input.textproto -- 10 map: { 11 key: "foo" 12 value: 2 13 } 14 map: { 15 key: "bar" 16 value: 3 17 } 18 19 implicit: { 20 key: "foo" 21 value: 2 22 } 23 implicit: { 24 key: "bar" 25 value: 3 26 } 27 28 intMap: { 29 key: 100 30 value: 2 31 } 32 intMap: { 33 key: 102 34 value: 3 35 } 36 37 -- out/decode -- 38 map: { 39 "foo": 2 40 } 41 map: { 42 "bar": 3 43 } 44 implicit: {} 45 implicit: {} 46 intMap: { 47 "100": 2 48 } 49 intMap: { 50 "102": 3 51 }