diff options
| author | Russ Cox <rsc@golang.org> | 2020-06-26 16:22:35 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2021-02-20 03:54:46 +0000 |
| commit | 9fd6cc105db89107bf163d2f0c1f8f55e442ec4d (patch) | |
| tree | ebee31efffc621afc6e335ef3bb6e762726395cf /src/runtime/lfstack_32bit.go | |
| parent | 5b76343a1040571e3d2249168a00a4dc814e920a (diff) | |
| download | go-9fd6cc105db89107bf163d2f0c1f8f55e442ec4d.tar.xz | |
go/printer: canonicalize //go:build and // +build lines while formatting
Part of //go:build change (#41184).
See https://golang.org/design/draft-gobuild
Gofmt and any other go/printer-using program will now:
- move //go:build and //+build lines to the appropriate file location
- if there's no //go:build line, add one derived from the // +build lines
- if there is a //go:build line, recompute and replace any // +build lines
to match what the //go:build line says
For Go 1.17.
Change-Id: Ide5cc3b4a07507ba9ed6f8b0de846e840876f49f
Reviewed-on: https://go-review.googlesource.com/c/go/+/240608
Trust: Russ Cox <rsc@golang.org>
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/runtime/lfstack_32bit.go')
0 files changed, 0 insertions, 0 deletions
