commit | 5322bdb290fda01bccf9d2a1ec4930ac7faae84e | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Tue Apr 09 15:57:05 2019 -0700 |
committer | Damien Neil <dneil@google.com> | Mon Jun 24 17:42:23 2019 +0000 |
tree | 5710e99e014e8654170dd1cad251002b219a53f2 | |
parent | cedb595154455cd6d77ac2307fec360092456951 [diff] |
internal/impl: add fast-path for IsInitialized This currently returns uninformative errors from the fast path and then consults the slow, reflection-based path only when an error is detected. Perhaps it's worth going through the effort of producing better errors directly on the fast path. Change-Id: I68536e9438010dbd97dbaff4f47b78430221d94b Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/171462 Reviewed-by: Joe Tsai <thebrokentoaster@gmail.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.