Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cskeeters
Copy link

When marshaling with go-yaml/yaml, numbers are output as double quoted strings. This adds a custom marshaller (MarshalYAML) that respects a new variable MarshalYAMLWithoutQuotes.

If you decide that you don't want this, I'm happy for it to just live here as a closed PR for anyone else looking for how to do this on their own.

Adds MarshalYAMLWithoutQuotes for marshaling Decimal without quotes
Copy link

@ccoVeille ccoVeille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing

Adds line of space before yaml.3 import

Co-authored-by: ccoVeille <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants