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 <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
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