commit | cd4a31e202a237730868a2ef5cf35daa778b3aef | [log] [tgz] |
---|---|---|
author | Joe Tsai <joetsai@digital-static.net> | Sat Sep 14 19:14:24 2019 -0700 |
committer | Joe Tsai <joetsai@digital-static.net> | Tue Sep 17 02:56:29 2019 +0000 |
tree | 277da08aaf76c2340b94d3f410733a8e4c4d7d7c | |
parent | cbdefb1530fe427791a1876d67311d96d3ff3363 [diff] |
encoding/prototext: add MarshalOptions.EmitUnknown This changes text marshaling to avoid unknown fields by default and instead adds an option so that unknown fields be emitted. This ensures that the default marshal/unknown can round-trip. Change-Id: I85c84ba6ab7916d538ec6bfd4e9d399a8fcba14e Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/195778 Reviewed-by: Herbie Ong <herbie@google.com>
WARNING: This repository is in active development. There are no guarantees about API stability. Breaking changes will occur until a stable release is made and announced.
This repository is for the development of the next major Go implementation of protocol buffers. This library makes breaking API changes relative to the existing Go protobuf library. Of particular note, this API aims to make protobuf reflection a first-class feature of the API and implements the protobuf ecosystem in terms of reflection.
List of relevant design documents:
We appreciate community contributions. See CONTRIBUTING.md.
Issues regarding the new API can be filed at github.com/golang/protobuf. Please use a APIv2:
prefix in the title to make it clear that the issue is regarding the new API work.