forked from awslabs/goformation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch go-yaml implementation to most recent version (awslabs#535)
- Loading branch information
1 parent
5741ed8
commit 0ca6ce2
Showing
7 changed files
with
119 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import ( | |
"encoding/json" | ||
"fmt" | ||
|
||
"github.com/sanathkr/yaml" | ||
"gopkg.in/yaml.v3" | ||
|
||
"github.com/awslabs/goformation/v7" | ||
"github.com/awslabs/goformation/v7/cloudformation" | ||
|
@@ -98,19 +98,19 @@ func Example_to_yaml() { | |
} | ||
|
||
// Output: | ||
// AWSTemplateFormatVersion: 2010-09-09 | ||
// AWSTemplateFormatVersion: "2010-09-09" | ||
// Resources: | ||
// MyTopic: | ||
// Properties: | ||
// TopicName: my-topic-1575143970 | ||
// Type: AWS::SNS::Topic | ||
// MyTopicSubscription: | ||
// Properties: | ||
// Endpoint: [email protected] | ||
// Protocol: email | ||
// TopicArn: | ||
// Ref: MyTopic | ||
// Type: AWS::SNS::Subscription | ||
// MyTopic: | ||
// Properties: | ||
// TopicName: my-topic-1575143970 | ||
// Type: AWS::SNS::Topic | ||
// MyTopicSubscription: | ||
// Properties: | ||
// Endpoint: [email protected] | ||
// Protocol: email | ||
// TopicArn: | ||
// Ref: MyTopic | ||
// Type: AWS::SNS::Subscription | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters