Joe Tsai | 025d81d | 2018-08-03 15:53:13 -0700 | [diff] [blame^] | 1 | // Copyright 2018 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | // Package flags provides a set of flags controlled by build tags. |
| 6 | package flags |
| 7 | |
| 8 | // Proto1Legacy specifies whether to enable support for legacy proto1 |
| 9 | // functionality such as MessageSets, weak fields, and various other obscure |
| 10 | // behavior that is necessary to maintain backwards compatibility with proto1. |
| 11 | // |
| 12 | // This is disabled by default unless built with the "proto1_legacy" tag. |
| 13 | // |
| 14 | // WARNING: The compatibility agreement covers nothing provided by this flag. |
| 15 | // As such, functionality may suddenly be removed or changed at our discretion. |
| 16 | const Proto1Legacy = proto1Legacy |