diff options
| author | Russ Cox <rsc@golang.org> | 2020-06-22 13:27:10 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-02-20 03:54:43 +0000 |
| commit | 5b76343a1040571e3d2249168a00a4dc814e920a (patch) | |
| tree | 6bea5c8a8b8fd1888586c4cd2d2dd035ff03d74c /src/encoding/json | |
| parent | a8942d2cffd80c68febe1c908a0eb464d2f5bb40 (diff) | |
| download | go-5b76343a1040571e3d2249168a00a4dc814e920a.tar.xz | |
go/build: prefer //go:build over // +build lines
Part of //go:build change (#41184).
See https://golang.org/design/draft-gobuild
- Reject files with multiple //go:build lines.
- If a file has both //go:build and // +build lines, only use the //go:build line.
- Otherwise fall back to // +build lines
- Use go/build/constraint for parsing both //go:build and // +build lines.
For Go 1.17.
Change-Id: I32e2404d8ce266230f767718dc7cc24e77b425e8
Reviewed-on: https://go-review.googlesource.com/c/go/+/240607
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
