MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / ExampleNew

Function ExampleNew

cft/diff/examples_test.go:46–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func ExampleNew() {
47 original := map[string]interface{}{
48 "foo": []interface{}{
49 "bar",
50 "baz",
51 },
52 "quux": map[string]interface{}{
53 "mooz": "xyzzy",
54 },
55 }
56
57 fmt.Println(compareValues(original, map[string]interface{}{
58 "cake": "lie",
59 }))
60
61 // Output:
62 // (|)map[cake:(+)lie foo:(-)[bar baz] quux:(-)map[mooz:xyzzy]]
63}

Callers

nothing calls this directly

Calls 1

compareValuesFunction · 0.85

Tested by

no test coverage detected