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

Add Merge to prototext.UnmarshalOptions #53

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

Conversation

dfreese
Copy link

@dfreese dfreese commented Feb 6, 2025

This adds a Merge option to prototext.UnmarshalOptions to match proto.UnmarshalOptions. This is particularly useful when needing to read multiple textproto files of the same format that wrap a single repeated field.

I've added this to the exact same position in the UnmarshalOptions struct as the proto version. It can be moved to the bottom of the struct definition if that would cause backwards compatibility issues, but I wasn't aware of any.

This adds a Merge option to prototext.UnmarshalOptions to match
proto.UnmarshalOptions.  This is particularly useful when needing to
read multiple textproto files of the same format that wrap a single
repeated field.

I've added this to the exact same position in the UnmarshalOptions
struct as the proto version.  It can be moved to the bottom of the
struct definition if that would cause backwards compatibility issues,
but I wasn't aware of any.
@puellanivis
Copy link

Thank you for your interest into contributing to this project.

Unfortunately this project does not accept GitHub pull requests as the source-of-truth for this project is hosted at https://go.googlesource.com/protobuf. This project page on GitHub is a mirror of that other repository.

If you would like to contribute to this project, please follow the contribution guidelines for instructions on how to send a change. If the change you'd like to make is more substantial or introduces any new features, then it should first be discussed on the issue tracker.

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