git.lucas.co / go_mono
git clone https://git.lucas.co/go_mono.git

commitac19c3e999fb6ea69c828f9e17148f37276c38e2
parent4410531fe0
authorRuss Cox <[email protected]>
date2021-02-19 18:54
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: Ib758eb8b75286993f3bd83b5004be667846118d4
Reviewed-on: https://go-review.googlesource.com/c/image/+/294419
Trust: Russ Cox <[email protected]>
Run-TryBot: Russ Cox <[email protected]>
TryBot-Result: Go Bot <[email protected]>
Reviewed-by: Jason A. Donenfeld <[email protected]>
Reviewed-by: Robert Griesemer <[email protected]>

 ccitt/gen.go          | 1 +
 colornames/gen.go     | 1 +
 draw/gen.go           | 1 +
 font/basicfont/gen.go | 1 +
 font/sfnt/gen.go      | 1 +
 tiff/fuzz.go          | 1 +
 vector/acc_amd64.go   | 5 ++---
 vector/acc_other.go   | 1 +
 vector/gen.go         | 1 +
 9 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ccitt/gen.go b/ccitt/gen.go
index b181428..6f37e76 100644
--- a/ccitt/gen.go
+++ b/ccitt/gen.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 ignore
 // +build ignore
 
 package main
diff --git a/colornames/gen.go b/colornames/gen.go
index 49e9ad9..f0c2ea0 100644
--- a/colornames/gen.go
+++ b/colornames/gen.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 ignore
 // +build ignore
 
 // This program generates table.go from
diff --git a/draw/gen.go b/draw/gen.go
index 822bb6a..33678ad 100644
--- a/draw/gen.go
+++ b/draw/gen.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 ignore
 // +build ignore
 
 package main
diff --git a/font/basicfont/gen.go b/font/basicfont/gen.go
index 67a21a7..fa25e60 100644
--- a/font/basicfont/gen.go
+++ b/font/basicfont/gen.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 ignore
 // +build ignore
 
 // This program generates data.go.
diff --git a/font/sfnt/gen.go b/font/sfnt/gen.go
index 12587d4..1708ce9 100644
--- a/font/sfnt/gen.go
+++ b/font/sfnt/gen.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 ignore
 // +build ignore
 
 package main
diff --git a/tiff/fuzz.go b/tiff/fuzz.go
index ec52c78..b27c540 100644
--- a/tiff/fuzz.go
+++ b/tiff/fuzz.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 gofuzz
 // +build gofuzz
 
 package tiff
diff --git a/vector/acc_amd64.go b/vector/acc_amd64.go
index c0d6ad9..a6fa0ca 100644
--- a/vector/acc_amd64.go
+++ b/vector/acc_amd64.go
@@ -2,9 +2,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build !appengine
-// +build gc
-// +build !noasm
+//go:build !appengine && gc && !noasm
+// +build !appengine,gc,!noasm
 
 package vector
 
diff --git a/vector/acc_other.go b/vector/acc_other.go
index d00bed8..3902269 100644
--- a/vector/acc_other.go
+++ b/vector/acc_other.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 !amd64 || appengine || !gc || noasm
 // +build !amd64 appengine !gc noasm
 
 package vector
diff --git a/vector/gen.go b/vector/gen.go
index 2e71a51..010608a 100644
--- a/vector/gen.go
+++ b/vector/gen.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 ignore
 // +build ignore
 
 package main