all: go fmt ./... Make all our package sources use Go 1.17 gofmt format (adding //go:build lines). Not strictly necessary but will avoid spurious changes as files are edited. Part of //go:build change (#41184). See https://golang.org/design/draft-gobuild Change-Id: Ib6eba20f6109a9dc1004dd5b802838e765e4622b Reviewed-on: https://go-review.googlesource.com/c/dl/+/294423 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
diff --git a/internal/genv/main.go b/internal/genv/main.go index 37e035d..dd19223 100644 --- a/internal/genv/main.go +++ b/internal/genv/main.go
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.13 // +build go1.13 // The genv command generates version-specific go command source files.
diff --git a/internal/genv/main_test.go b/internal/genv/main_test.go index ecffed2..6b25e91 100644 --- a/internal/genv/main_test.go +++ b/internal/genv/main_test.go
@@ -2,6 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build go1.13 // +build go1.13 package main