gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/yaml/decode_test.yaml (about) 1 jsonMap: &jsonMap 2 key1: 1 3 key2: value2 4 key3: [ value3, value4 ] 5 6 generalMap: &generalMap 7 1: 1 8 3.14: 2 9 key3: 10 key1: 1 11 key2: [ 1, 2, 3 ] 12 13 node: &node 14 ? { a: a, b: b } 15 : 16 c: c 17 d: d 18 ? [ a, b, c ] 19 : test 20 21 base: &base 22 string: test 23 int: 1 24 uint: 2 25 float64: 3.14 26 27 strings: [ test1, test2, test3 ] 28 29 ints: [ 1, 2, 3 ] 30 uints: [ 4, 5, 6 ] 31 floats: [ 1.1, 2.3, 3.5 ] 32 33 stringMap: { key1: value1, key2: value2 } 34 stringsMap: 35 key1: [ value1, value2 ] 36 key2: [ value3, value4 ] 37 jsonMap: *jsonMap 38 generalMap: 39 <<: *generalMap 40 41 node: 42 <<: *node 43 44 baseP: 45 <<: *base 46 47 mapBase: *base 48 49 mapBaseP: 50 <<: *base 51 52 structMapBase: *base