flags.go 740 B

12345678910111213141516
  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. // Package flags provides a set of flags controlled by build tags.
  5. package flags
  6. // Proto1Legacy specifies whether to enable support for legacy proto1
  7. // functionality such as MessageSets, weak fields, and various other obscure
  8. // behavior that is necessary to maintain backwards compatibility with proto1.
  9. //
  10. // This is disabled by default unless built with the "proto1_legacy" tag.
  11. //
  12. // WARNING: The compatibility agreement covers nothing provided by this flag.
  13. // As such, functionality may suddenly be removed or changed at our discretion.
  14. const Proto1Legacy = proto1Legacy