all: delete obsolete // +build lines Many of the modules in x/exp say go 1.18 or newer in their go.mod files. Use go fix remove the // +build lines that have become obsolete by that Go version. See https://go.dev/doc/go1.18#go-build-lines. Change-Id: I9ec877d72ece76ce8ec2d4a368450db6ebda6d12 Reviewed-on: https://go-review.googlesource.com/c/exp/+/516676 Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/cmd/macos-roots-test/main.go b/cmd/macos-roots-test/main.go index db2bfe6..a7d2c80 100644 --- a/cmd/macos-roots-test/main.go +++ b/cmd/macos-roots-test/main.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin // Command macOS-roots-test runs crypto/x509.TestSystemRoots as a // stand-alone binary for crowdsourced testing.
diff --git a/cmd/macos-roots-test/root_nocgo_darwin.go b/cmd/macos-roots-test/root_nocgo_darwin.go index cdf44d4..94c6105 100644 --- a/cmd/macos-roots-test/root_nocgo_darwin.go +++ b/cmd/macos-roots-test/root_nocgo_darwin.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !cgo -// +build !cgo package main
diff --git a/event/adapter/gokit/gokit_test.go b/event/adapter/gokit/gokit_test.go index e12bdbf..29169f8 100644 --- a/event/adapter/gokit/gokit_test.go +++ b/event/adapter/gokit/gokit_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package gokit_test
diff --git a/event/adapter/logr/logr_test.go b/event/adapter/logr/logr_test.go index f8d62f6..aaa877e 100644 --- a/event/adapter/logr/logr_test.go +++ b/event/adapter/logr/logr_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package logr_test
diff --git a/event/adapter/logrus/logrus.go b/event/adapter/logrus/logrus.go index 7924882..ed2fa3b 100644 --- a/event/adapter/logrus/logrus.go +++ b/event/adapter/logrus/logrus.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events // Package logrus provides a logrus Formatter for events. // To use for the global logger:
diff --git a/event/adapter/logrus/logrus_test.go b/event/adapter/logrus/logrus_test.go index 6e76f3a..0404940 100644 --- a/event/adapter/logrus/logrus_test.go +++ b/event/adapter/logrus/logrus_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package logrus_test
diff --git a/event/adapter/zap/zap.go b/event/adapter/zap/zap.go index c59d9a7..6fe8a27 100644 --- a/event/adapter/zap/zap.go +++ b/event/adapter/zap/zap.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events // zap provides an implementation of zapcore.Core for events. // To use globally:
diff --git a/event/adapter/zap/zap_test.go b/event/adapter/zap/zap_test.go index 787b6b4..ed2e03c 100644 --- a/event/adapter/zap/zap_test.go +++ b/event/adapter/zap/zap_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package zap_test
diff --git a/event/alloc_test.go b/event/alloc_test.go index 533ef9c..1cf7e75 100644 --- a/event/alloc_test.go +++ b/event/alloc_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !race -// +build !race package event_test
diff --git a/event/disabled.go b/event/disabled.go index 385a6c6..7aee0bd 100644 --- a/event/disabled.go +++ b/event/disabled.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build disable_events -// +build disable_events package event
diff --git a/event/event_test.go b/event/event_test.go index 1757a97..5899988 100644 --- a/event/event_test.go +++ b/event/event_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package event_test
diff --git a/event/export.go b/event/export.go index f52de45..5dc7f02 100644 --- a/event/export.go +++ b/event/export.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package event
diff --git a/event/otel/trace_test.go b/event/otel/trace_test.go index 6813fe4..81d369f 100644 --- a/event/otel/trace_test.go +++ b/event/otel/trace_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package otel_test
diff --git a/event/severity/severity_test.go b/event/severity/severity_test.go index 5f31832..b5ca973 100644 --- a/event/severity/severity_test.go +++ b/event/severity/severity_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package severity_test
diff --git a/event/source.go b/event/source.go index 05d9aa9..3af0bd4 100644 --- a/event/source.go +++ b/event/source.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !disable_events -// +build !disable_events package event
diff --git a/io/i2c/devfs.go b/io/i2c/devfs.go index 3c7704f..06a45f1 100644 --- a/io/i2c/devfs.go +++ b/io/i2c/devfs.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux -// +build linux package i2c
diff --git a/io/i2c/devfs_nonlinux.go b/io/i2c/devfs_nonlinux.go index 619fb9f..3cc48cd 100644 --- a/io/i2c/devfs_nonlinux.go +++ b/io/i2c/devfs_nonlinux.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux -// +build !linux package i2c
diff --git a/io/spi/devfs.go b/io/spi/devfs.go index a5f1bca..f67df50 100644 --- a/io/spi/devfs.go +++ b/io/spi/devfs.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux -// +build linux package spi
diff --git a/io/spi/devfs_nonlinux.go b/io/spi/devfs_nonlinux.go index 499d69d..e04d7ea 100644 --- a/io/spi/devfs_nonlinux.go +++ b/io/spi/devfs_nonlinux.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux -// +build !linux package spi
diff --git a/mmap/manual_test_program.go b/mmap/manual_test_program.go index 5c212b6..b956b5c 100644 --- a/mmap/manual_test_program.go +++ b/mmap/manual_test_program.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ignore -// +build ignore // // This build tag means that "go build" does not build this file. Use "go run
diff --git a/mmap/mmap_other.go b/mmap/mmap_other.go index 1e7b948..799cd7c 100644 --- a/mmap/mmap_other.go +++ b/mmap/mmap_other.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux && !windows && !darwin -// +build !linux,!windows,!darwin // Package mmap provides a way to memory-map a file. package mmap
diff --git a/mmap/mmap_unix.go b/mmap/mmap_unix.go index 5ceb69b..0b92cdb 100644 --- a/mmap/mmap_unix.go +++ b/mmap/mmap_unix.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux || darwin -// +build linux darwin // Package mmap provides a way to memory-map a file. package mmap
diff --git a/shiny/driver/driver_darwin.go b/shiny/driver/driver_darwin.go index 3eebcf7..43f79cf 100644 --- a/shiny/driver/driver_darwin.go +++ b/shiny/driver/driver_darwin.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin && !metal -// +build darwin,!metal package driver
diff --git a/shiny/driver/driver_fallback.go b/shiny/driver/driver_fallback.go index e36fbc5..93b0c19 100644 --- a/shiny/driver/driver_fallback.go +++ b/shiny/driver/driver_fallback.go
@@ -3,11 +3,6 @@ // license that can be found in the LICENSE file. //go:build !darwin && (!linux || android) && !windows && !dragonfly && !openbsd -// +build !darwin -// +build !linux android -// +build !windows -// +build !dragonfly -// +build !openbsd package driver
diff --git a/shiny/driver/driver_x11.go b/shiny/driver/driver_x11.go index bc24238..5f9b839 100644 --- a/shiny/driver/driver_x11.go +++ b/shiny/driver/driver_x11.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build (linux && !android) || dragonfly || openbsd -// +build linux,!android dragonfly openbsd package driver
diff --git a/shiny/driver/gldriver/cocoa.go b/shiny/driver/gldriver/cocoa.go index db5ba63..99dad13 100644 --- a/shiny/driver/gldriver/cocoa.go +++ b/shiny/driver/gldriver/cocoa.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin && !ios -// +build darwin,!ios package gldriver
diff --git a/shiny/driver/gldriver/context.go b/shiny/driver/gldriver/context.go index 274d799..488a388 100644 --- a/shiny/driver/gldriver/context.go +++ b/shiny/driver/gldriver/context.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !android -// +build !android package gldriver
diff --git a/shiny/driver/gldriver/other.go b/shiny/driver/gldriver/other.go index 0a04425..f762750 100644 --- a/shiny/driver/gldriver/other.go +++ b/shiny/driver/gldriver/other.go
@@ -3,10 +3,6 @@ // license that can be found in the LICENSE file. //go:build (!darwin || ios || !cgo) && (!linux || android || !cgo) && (!openbsd || !cgo) && !windows -// +build !darwin ios !cgo -// +build !linux android !cgo -// +build !openbsd !cgo -// +build !windows package gldriver
diff --git a/shiny/driver/gldriver/win32.go b/shiny/driver/gldriver/win32.go index 8ece242..c94549e 100755 --- a/shiny/driver/gldriver/win32.go +++ b/shiny/driver/gldriver/win32.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package gldriver
diff --git a/shiny/driver/gldriver/x11.go b/shiny/driver/gldriver/x11.go index 4847e85..0ccdd59 100644 --- a/shiny/driver/gldriver/x11.go +++ b/shiny/driver/gldriver/x11.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build (linux && !android) || openbsd -// +build linux,!android openbsd package gldriver
diff --git a/shiny/driver/internal/swizzle/swizzle_other.go b/shiny/driver/internal/swizzle/swizzle_other.go index f1c2726..4bf7751 100644 --- a/shiny/driver/internal/swizzle/swizzle_other.go +++ b/shiny/driver/internal/swizzle/swizzle_other.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !amd64 -// +build !amd64 package swizzle
diff --git a/shiny/driver/internal/win32/key.go b/shiny/driver/internal/win32/key.go index a5748c3..da75d9a 100644 --- a/shiny/driver/internal/win32/key.go +++ b/shiny/driver/internal/win32/key.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package win32
diff --git a/shiny/driver/internal/win32/win32.go b/shiny/driver/internal/win32/win32.go index 22a6013..c020ce6 100644 --- a/shiny/driver/internal/win32/win32.go +++ b/shiny/driver/internal/win32/win32.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows // Package win32 implements a partial shiny screen driver using the Win32 API. // It provides window, lifecycle, key, and mouse management, but no drawing.
diff --git a/shiny/driver/internal/x11key/gen.go b/shiny/driver/internal/x11key/gen.go index 3ce4f1e..72201aa 100644 --- a/shiny/driver/internal/x11key/gen.go +++ b/shiny/driver/internal/x11key/gen.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ignore -// +build ignore // This program generates the table keysymCodePoints from /usr/include/X11/keysymdef.h package main
diff --git a/shiny/driver/mtldriver/buffer.go b/shiny/driver/mtldriver/buffer.go index 987d75a..ef13fae 100644 --- a/shiny/driver/mtldriver/buffer.go +++ b/shiny/driver/mtldriver/buffer.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin package mtldriver
diff --git a/shiny/driver/mtldriver/internal/appkit/appkit.go b/shiny/driver/mtldriver/internal/appkit/appkit.go index 7140f6f..cf1ed5e 100644 --- a/shiny/driver/mtldriver/internal/appkit/appkit.go +++ b/shiny/driver/mtldriver/internal/appkit/appkit.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin // Package appkit provides access to Apple's AppKit API // (https://developer.apple.com/documentation/appkit).
diff --git a/shiny/driver/mtldriver/internal/coreanim/coreanim.go b/shiny/driver/mtldriver/internal/coreanim/coreanim.go index 257b783..19ee694 100644 --- a/shiny/driver/mtldriver/internal/coreanim/coreanim.go +++ b/shiny/driver/mtldriver/internal/coreanim/coreanim.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin // Package coreanim provides access to Apple's Core Animation API // (https://developer.apple.com/documentation/quartzcore).
diff --git a/shiny/driver/mtldriver/mtldriver.go b/shiny/driver/mtldriver/mtldriver.go index a926b92..3f5c36c 100644 --- a/shiny/driver/mtldriver/mtldriver.go +++ b/shiny/driver/mtldriver/mtldriver.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin // Package mtldriver provides a Metal driver for accessing a screen. //
diff --git a/shiny/driver/mtldriver/screen.go b/shiny/driver/mtldriver/screen.go index 544de7c..71cbabc 100644 --- a/shiny/driver/mtldriver/screen.go +++ b/shiny/driver/mtldriver/screen.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin package mtldriver
diff --git a/shiny/driver/mtldriver/texture.go b/shiny/driver/mtldriver/texture.go index 60185ee..f0a801f 100644 --- a/shiny/driver/mtldriver/texture.go +++ b/shiny/driver/mtldriver/texture.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin package mtldriver
diff --git a/shiny/driver/mtldriver/window.go b/shiny/driver/mtldriver/window.go index 7bbb837..b21a8a8 100644 --- a/shiny/driver/mtldriver/window.go +++ b/shiny/driver/mtldriver/window.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin package mtldriver
diff --git a/shiny/driver/mtldriver_darwin.go b/shiny/driver/mtldriver_darwin.go index a30cd27..4e910c5 100644 --- a/shiny/driver/mtldriver_darwin.go +++ b/shiny/driver/mtldriver_darwin.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin && metal -// +build darwin,metal package driver
diff --git a/shiny/driver/windriver/buffer.go b/shiny/driver/windriver/buffer.go index eeff378..10e42c7 100644 --- a/shiny/driver/windriver/buffer.go +++ b/shiny/driver/windriver/buffer.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windriver
diff --git a/shiny/driver/windriver/other.go b/shiny/driver/windriver/other.go index 2da4c44..f533187 100644 --- a/shiny/driver/windriver/other.go +++ b/shiny/driver/windriver/other.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !windows -// +build !windows package windriver
diff --git a/shiny/driver/windriver/screen.go b/shiny/driver/windriver/screen.go index 148b4ef..bc64df0 100644 --- a/shiny/driver/windriver/screen.go +++ b/shiny/driver/windriver/screen.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windriver
diff --git a/shiny/driver/windriver/texture.go b/shiny/driver/windriver/texture.go index 6fbfff5..5857686 100644 --- a/shiny/driver/windriver/texture.go +++ b/shiny/driver/windriver/texture.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windriver
diff --git a/shiny/driver/windriver/window.go b/shiny/driver/windriver/window.go index 9577f2c..3937f4b 100644 --- a/shiny/driver/windriver/window.go +++ b/shiny/driver/windriver/window.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windriver
diff --git a/shiny/driver/windriver/windraw.go b/shiny/driver/windriver/windraw.go index b5e6b15..4e3fd2f 100644 --- a/shiny/driver/windriver/windraw.go +++ b/shiny/driver/windriver/windraw.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windriver
diff --git a/shiny/driver/windriver/windriver.go b/shiny/driver/windriver/windriver.go index 73a5420..b6d0fb6 100644 --- a/shiny/driver/windriver/windriver.go +++ b/shiny/driver/windriver/windriver.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windriver
diff --git a/shiny/driver/x11driver/shm_linux_ipc.go b/shiny/driver/x11driver/shm_linux_ipc.go index 23fe9a4..dcb61ac 100644 --- a/shiny/driver/x11driver/shm_linux_ipc.go +++ b/shiny/driver/x11driver/shm_linux_ipc.go
@@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (386 || ppc64 || ppc64le || s390x) -// +build linux -// +build 386 ppc64 ppc64le s390x package x11driver
diff --git a/shiny/driver/x11driver/shm_openbsd_syscall.go b/shiny/driver/x11driver/shm_openbsd_syscall.go index d42cb4c..d8dc2c1 100644 --- a/shiny/driver/x11driver/shm_openbsd_syscall.go +++ b/shiny/driver/x11driver/shm_openbsd_syscall.go
@@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build openbsd && (i386 || amd64) -// +build openbsd -// +build i386 amd64 package x11driver
diff --git a/shiny/driver/x11driver/shm_other.go b/shiny/driver/x11driver/shm_other.go index fa071c3..8003f14 100644 --- a/shiny/driver/x11driver/shm_other.go +++ b/shiny/driver/x11driver/shm_other.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux && !dragonfly && !openbsd -// +build !linux,!dragonfly,!openbsd package x11driver
diff --git a/shiny/driver/x11driver/shm_shmopen_syscall.go b/shiny/driver/x11driver/shm_shmopen_syscall.go index 45d7373..74f571b 100644 --- a/shiny/driver/x11driver/shm_shmopen_syscall.go +++ b/shiny/driver/x11driver/shm_shmopen_syscall.go
@@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (linux || dragonfly) && (amd64 || arm || arm64 || mips64 || mips64le) -// +build linux dragonfly -// +build amd64 arm arm64 mips64 mips64le package x11driver
diff --git a/shiny/materialdesign/colornames/gen.go b/shiny/materialdesign/colornames/gen.go index f663952..aa09e93 100644 --- a/shiny/materialdesign/colornames/gen.go +++ b/shiny/materialdesign/colornames/gen.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ignore -// +build ignore // This program generates table.go from // https://material.google.com/style/color.html
diff --git a/shiny/materialdesign/icons/gen.go b/shiny/materialdesign/icons/gen.go index 2e95bfc..150318b 100644 --- a/shiny/materialdesign/icons/gen.go +++ b/shiny/materialdesign/icons/gen.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ignore -// +build ignore package main
diff --git a/shiny/widget/glwidget/glwidget.go b/shiny/widget/glwidget/glwidget.go index 3122377..63b9a6a 100644 --- a/shiny/widget/glwidget/glwidget.go +++ b/shiny/widget/glwidget/glwidget.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !android -// +build !android // Package glwidget provides a widget containing a GL ES framebuffer. package glwidget
diff --git a/slices/slices_race_test.go b/slices/slices_race_test.go index c85d6ee..5a2a15d 100644 --- a/slices/slices_race_test.go +++ b/slices/slices_race_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build race -// +build race package slices
diff --git a/typeparams/copytermlist.go b/typeparams/copytermlist.go index ffe997a..c67dc17 100644 --- a/typeparams/copytermlist.go +++ b/typeparams/copytermlist.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ignore -// +build ignore // copytermlist.go copies the term list algorithm from GOROOT/src/go/types. // Run it with:
diff --git a/typeparams/example/findtypeparams/main.go b/typeparams/example/findtypeparams/main.go index 50a1fcc..2026ba2 100644 --- a/typeparams/example/findtypeparams/main.go +++ b/typeparams/example/findtypeparams/main.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package main
diff --git a/typeparams/example/genericmethods/main.go b/typeparams/example/genericmethods/main.go index 8acdcf2..6aa5e7a 100644 --- a/typeparams/example/genericmethods/main.go +++ b/typeparams/example/genericmethods/main.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package main
diff --git a/typeparams/example/instantiation/main.go b/typeparams/example/instantiation/main.go index 11e19c1..ed53667 100644 --- a/typeparams/example/instantiation/main.go +++ b/typeparams/example/instantiation/main.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package main
diff --git a/typeparams/example/interfaces/main.go b/typeparams/example/interfaces/main.go index 9f9ac62..6a0d627 100644 --- a/typeparams/example/interfaces/main.go +++ b/typeparams/example/interfaces/main.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package main
diff --git a/typeparams/example/methoddecls/main.go b/typeparams/example/methoddecls/main.go index da19bef..52ae8be 100644 --- a/typeparams/example/methoddecls/main.go +++ b/typeparams/example/methoddecls/main.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package main
diff --git a/typeparams/typeparams_go117.go b/typeparams/typeparams_go117.go index efc33f1..c1da793 100644 --- a/typeparams/typeparams_go117.go +++ b/typeparams/typeparams_go117.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.18 -// +build !go1.18 package typeparams
diff --git a/typeparams/typeparams_go118.go b/typeparams/typeparams_go118.go index 1176104..0b35449 100644 --- a/typeparams/typeparams_go118.go +++ b/typeparams/typeparams_go118.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package typeparams
diff --git a/typeparams/typeparams_test.go b/typeparams/typeparams_test.go index 50d1e2e..2136a59 100644 --- a/typeparams/typeparams_test.go +++ b/typeparams/typeparams_test.go
@@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package typeparams_test