()
| 202 | } |
| 203 | |
| 204 | func Example() { |
| 205 | template, _ := parse.String(` |
| 206 | Resources: |
| 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 | |
| 216 | func TestGetResource(t *testing.T) { |
| 217 | source := ` |