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

introduce NewDecoderWithParser with ability to provide a custom parser #994

Open
wants to merge 1 commit into
base: v3
Choose a base branch
from

Conversation

ndeloof
Copy link

@ndeloof ndeloof commented Sep 26, 2023

this offers user ability to provide yaml document to be decoded into go structs as an abstract yaml.Node producer by encapsulating the io.Reader-based parser behind a Parser interface.

closes #993

@ndeloof
Copy link
Author

ndeloof commented Sep 29, 2023

@niemeyer what do you think about this approach, does it sound right to better separate the parser and decoder into reusable components?

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.

how to decode a yaml.Node document ?
1 participant