Skip to content

Merge utility for Protobuf using FieldMask

License

Notifications You must be signed in to change notification settings

iterate/maskmerge

Repository files navigation

Merge utility for Protobuf using FieldMask

MaskMerge implements merging of two protocol buffer messages as specified by the FieldMask documentation.

Installation

go get github.com/iterate/maskmerge

Usage

Feed MaskMerge with a proto.Message to update, a proto.Message to read values from, and a fieldmaskpb.FieldMask. See example_test.go for a full example.

maskmerge.MaskMerge(dst, src, mask)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Merge utility for Protobuf using FieldMask

Topics

Resources

License

Stars

Watchers

Forks