Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade YAML API to yaml.v3 #15

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Upgrade YAML API to yaml.v3 #15

merged 1 commit into from
Feb 3, 2023

Conversation

joshkaplinsky
Copy link
Contributor

The yaml.v3 package addresses a number of issues that had been lingering around the previous API version - namely, string-keyed maps for nested maps. With the upgrade to yaml.v3 nested maps, where all keys are a string, will be decoded as map[string]any rather than map[any]any. This is inline with the encoding/json package and more streamlined when working with both JSON and YAML.

Upgrading the package continues to pass all tests.

https://ubuntu.com/blog/api-v3-of-the-yaml-package-for-go-is-available

@kkyr
Copy link
Owner

kkyr commented Feb 3, 2023

Thanks for the PR!

Linting error not related to change.

@kkyr kkyr merged commit 95c6c10 into kkyr:master Feb 3, 2023
@joshkaplinsky joshkaplinsky deleted the upgrade-yaml.v3 branch February 3, 2023 22:21
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