Drop redundant GOOS build tags if already in filename

Drop redundant GOOS build tags at start of file if the constraint is
already specified by the filename, e.g. foo_GOOS.go or
foo_GOOS_GOARCH.go, avoiding potential confusion in future.

cf. https://pkg.go.dev/cmd/go#hdr-Build_constraints

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
This commit is contained in:
Daniel Swarbrick 2023-08-03 15:29:03 +02:00 committed by Johannes 'fish' Ziemke
parent c6c28d915c
commit 3fb5f70b0c
17 changed files with 34 additions and 34 deletions

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build solaris && !noboottime
// +build solaris,!noboottime
//go:build !noboottime
// +build !noboottime
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build solaris && !nocpu
// +build solaris,!nocpu
//go:build !nocpu
// +build !nocpu
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build solaris && !nocpu
// +build solaris,!nocpu
//go:build !nocpu
// +build !nocpu
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build openbsd && !amd64 && !nodiskstats
// +build openbsd,!amd64,!nodiskstats
//go:build !nodiskstats && !amd64
// +build !nodiskstats,!amd64
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux && !nofibrechannel
// +build linux,!nofibrechannel
//go:build !nofibrechannel
// +build !nofibrechannel
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build openbsd && !nofilesystem
// +build openbsd,!nofilesystem
//go:build !nofilesystem
// +build !nofilesystem
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux && !noinfiniband
// +build linux,!noinfiniband
//go:build !noinfiniband
// +build !noinfiniband
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build openbsd && !amd64 && !nointerrupts
// +build openbsd,!amd64,!nointerrupts
//go:build !nointerrupts && !amd64
// +build !nointerrupts,!amd64
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build netbsd && !nomeminfo
// +build netbsd,!nomeminfo
//go:build !nomeminfo
// +build !nomeminfo
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build openbsd && !amd64 && !nomeminfo
// +build openbsd,!amd64,!nomeminfo
//go:build !nomeminfo && !amd64
// +build !nomeminfo,!amd64
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build openbsd && !amd64 && !nonetdev
// +build openbsd,!amd64,!nonetdev
//go:build !nonetdev && !amd64
// +build !nonetdev,!amd64
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build freebsd && !nonetisr
// +build freebsd,!nonetisr
//go:build !nonetisr
// +build !nonetisr
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux && !nonvme
// +build linux,!nonvme
//go:build !nonvme
// +build !nonvme
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux && !noselinux
// +build linux,!noselinux
//go:build !noselinux
// +build !noselinux
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux && !noslabinfo
// +build linux,!noslabinfo
//go:build !noslabinfo
// +build !noslabinfo
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux && !notime
// +build linux,!notime
//go:build !notime
// +build !notime
package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build solaris && !nozfs
// +build solaris,!nozfs
//go:build !nozfs
// +build !nozfs
package collector