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
Merges not working as expected #1
Comments
That doesn't yet work indeed, but it should. Here is the documentation reference: |
Closed
laverya
pushed a commit
to laverya/yaml
that referenced
this issue
Sep 4, 2019
Added comment support
laverya
pushed a commit
to laverya/yaml
that referenced
this issue
Sep 4, 2019
Preserve newlines in comments
sylr
referenced
this issue
in sylr/go-yaml
May 16, 2021
Updates to yaml allowing decoding into structs and maintaining field positions and comments.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the following yaml configuration:
And I'm expected to be able to merge the key values for 'default' into the third folders list item.
My struct that I'm providing to the Unmarshal method looks like:
Note there's no 'default' key provided as I don't care about loading the default value, but I still would expect its keys to be merged into the folders list.
Am I doing something wrong, or does go-yaml not handle merges?
The text was updated successfully, but these errors were encountered: