Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy 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
ndeloof wants to merge1 commit intogo-yaml:v3
base:v3
Choose a base branch
Loading
fromndeloof:decoder

Conversation

ndeloof
Copy link

this offers user ability to provide yaml document to be decoded into go structs as an abstractyaml.Node producer by encapsulating the io.Reader-basedparser behind aParser interface.

closes#993

…NodeSigned-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof
Copy link
Author

@niemeyer what do you think about this approach, does it sound right to better separate theparser anddecoder into reusable components?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

how to decode a yaml.Node document ?
1 participant
@ndeloof

[8]ページ先頭

©2009-2025 Movatter.jp