blob: 8208a6d1b1982679c6118313a221388123319473 [file] [log] [blame]
Joe Tsai025d81d2018-08-03 15:53:13 -07001// 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.
6package 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.
16const Proto1Legacy = proto1Legacy