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

[Question] Is it possible to merge 2 yamls preserving anchors? #381

Open
rjshrjndrn opened this issue Jul 25, 2023 · 0 comments
Open

[Question] Is it possible to merge 2 yamls preserving anchors? #381

rjshrjndrn opened this issue Jul 25, 2023 · 0 comments
Labels
question Further information is requested

Comments

@rjshrjndrn
Copy link

rjshrjndrn commented Jul 25, 2023

Hi,

First of all, thank you for this amazing library. I'm checking a way to merge 2 yamls, and keep the anchors intact. Is there any way to do that. Sorry for this stupid question. I'm a noob in golang.

Thank you

yaml1

people: &people
  - name: john
    age: 10
class:
  students: *people

yaml2

people:
  - name: alice
    age: 11

output.yaml

people: &people
  - name: john
    age: 10
  - name: alice
    age: 11
class:
  students: *people
@goccy goccy added the question Further information is requested label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants