go-jsonnet/testdata/object_comp_dollar2.jsonnet
2017-10-03 19:51:01 -04:00

2 lines
82 B
Jsonnet

{ [x]: { a: 1, b: if x == "a" then 42 else $.a.b + 1 } for x in ["a", "b", "c"] }