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

Function Example

cft/parse/parse_test.go:204–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204func Example() {
205 template, _ := parse.String(`
206Resources:
207 Bucket:
208 Type: AWS::S3::Bucket
209`)
210
211 fmt.Println(template.Map())
212 // Output:
213 // map[Resources:map[Bucket:map[Type:AWS::S3::Bucket]]]
214}
215
216func TestGetResource(t *testing.T) {
217 source := `

Callers

nothing calls this directly

Calls 2

StringFunction · 0.92
MapMethod · 0.80

Tested by

no test coverage detected