diff --git a/dsp/fourier/internal/fftpack/array_bounds_checks.go b/dsp/fourier/internal/fftpack/array_bounds_checks.go index 7fe282ff..b53b8173 100644 --- a/dsp/fourier/internal/fftpack/array_bounds_checks.go +++ b/dsp/fourier/internal/fftpack/array_bounds_checks.go @@ -4,6 +4,7 @@ // This file must be kept in sync with array_no_bound_checks.go. +//go:build bounds // +build bounds package fftpack diff --git a/dsp/fourier/internal/fftpack/array_no_bounds_checks.go b/dsp/fourier/internal/fftpack/array_no_bounds_checks.go index 11d5ee6b..52f81b0a 100644 --- a/dsp/fourier/internal/fftpack/array_no_bounds_checks.go +++ b/dsp/fourier/internal/fftpack/array_no_bounds_checks.go @@ -4,6 +4,7 @@ // This file must be kept in sync with array_bound_checks.go. +//go:build !bounds // +build !bounds package fftpack diff --git a/graph/formats/dot/fuzz/fuzz.go b/graph/formats/dot/fuzz/fuzz.go index f122c6ac..37410756 100644 --- a/graph/formats/dot/fuzz/fuzz.go +++ b/graph/formats/dot/fuzz/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 fuzz diff --git a/graph/formats/dot/internal/paste_copyright.go b/graph/formats/dot/internal/paste_copyright.go index 97a239a3..01b84c0b 100644 --- a/graph/formats/dot/internal/paste_copyright.go +++ b/graph/formats/dot/internal/paste_copyright.go @@ -8,6 +8,7 @@ // This file is made available under a Creative Commons CC0 1.0 // Universal Public Domain Dedication.`) +//go:build ignore // +build ignore package main diff --git a/graph/internal/set/same.go b/graph/internal/set/same.go index 85dc700b..a7031e4a 100644 --- a/graph/internal/set/same.go +++ b/graph/internal/set/same.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 !safe // +build !safe package set diff --git a/graph/internal/set/same_appengine.go b/graph/internal/set/same_appengine.go index 1ff02c38..368823d4 100644 --- a/graph/internal/set/same_appengine.go +++ b/graph/internal/set/same_appengine.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 safe // +build safe package set diff --git a/graph/iterator/map.go b/graph/iterator/map.go index a3ead9a2..bca015c5 100644 --- a/graph/iterator/map.go +++ b/graph/iterator/map.go @@ -6,6 +6,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !safe // +build !safe package iterator diff --git a/graph/iterator/nodes_map.go b/graph/iterator/nodes_map.go index ab2d9512..c919b136 100644 --- a/graph/iterator/nodes_map.go +++ b/graph/iterator/nodes_map.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 !safe // +build !safe package iterator diff --git a/graph/iterator/nodes_map_safe.go b/graph/iterator/nodes_map_safe.go index e55ecbb6..d097dc2e 100644 --- a/graph/iterator/nodes_map_safe.go +++ b/graph/iterator/nodes_map_safe.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 safe // +build safe package iterator diff --git a/graph/layout/isomap_386_test.go b/graph/layout/isomap_386_test.go index ed15e906..a2b7dc98 100644 --- a/graph/layout/isomap_386_test.go +++ b/graph/layout/isomap_386_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 386 // +build 386 package layout_test diff --git a/graph/layout/isomap_arm64_test.go b/graph/layout/isomap_arm64_test.go index 90668f4b..1aa72743 100644 --- a/graph/layout/isomap_arm64_test.go +++ b/graph/layout/isomap_arm64_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 arm64 // +build arm64 package layout_test diff --git a/graph/layout/isomap_noasm_test.go b/graph/layout/isomap_noasm_test.go index 40d9e3d8..7f53fa00 100644 --- a/graph/layout/isomap_noasm_test.go +++ b/graph/layout/isomap_noasm_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 noasm || gccgo || safe // +build noasm gccgo safe package layout_test diff --git a/graph/topo/non_tomita_choice.go b/graph/topo/non_tomita_choice.go index 36171d6f..12aeaa68 100644 --- a/graph/topo/non_tomita_choice.go +++ b/graph/topo/non_tomita_choice.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 !tomita // +build !tomita package topo diff --git a/graph/topo/tomita_choice.go b/graph/topo/tomita_choice.go index f85a0d6c..2b955f14 100644 --- a/graph/topo/tomita_choice.go +++ b/graph/topo/tomita_choice.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 tomita // +build tomita package topo diff --git a/internal/asm/c128/stubs_amd64.go b/internal/asm/c128/stubs_amd64.go index a3770312..dbf3ff46 100644 --- a/internal/asm/c128/stubs_amd64.go +++ b/internal/asm/c128/stubs_amd64.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 !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package c128 diff --git a/internal/asm/c128/stubs_noasm.go b/internal/asm/c128/stubs_noasm.go index eafed794..42b3e9c6 100644 --- a/internal/asm/c128/stubs_noasm.go +++ b/internal/asm/c128/stubs_noasm.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package c128 diff --git a/internal/asm/c64/stubs_amd64.go b/internal/asm/c64/stubs_amd64.go index 40be642e..2fff60ac 100644 --- a/internal/asm/c64/stubs_amd64.go +++ b/internal/asm/c64/stubs_amd64.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 !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package c64 diff --git a/internal/asm/c64/stubs_noasm.go b/internal/asm/c64/stubs_noasm.go index d6ada1fd..6729b7a5 100644 --- a/internal/asm/c64/stubs_noasm.go +++ b/internal/asm/c64/stubs_noasm.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package c64 diff --git a/internal/asm/f32/ge_amd64.go b/internal/asm/f32/ge_amd64.go index a71fe7bb..5a67f5ff 100644 --- a/internal/asm/f32/ge_amd64.go +++ b/internal/asm/f32/ge_amd64.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 !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package f32 diff --git a/internal/asm/f32/ge_noasm.go b/internal/asm/f32/ge_noasm.go index 80a83e52..40e83b31 100644 --- a/internal/asm/f32/ge_noasm.go +++ b/internal/asm/f32/ge_noasm.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f32 diff --git a/internal/asm/f32/stubs_amd64.go b/internal/asm/f32/stubs_amd64.go index 1b3b70c0..2cdd1cf9 100644 --- a/internal/asm/f32/stubs_amd64.go +++ b/internal/asm/f32/stubs_amd64.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 !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package f32 diff --git a/internal/asm/f32/stubs_noasm.go b/internal/asm/f32/stubs_noasm.go index 17ab71f6..319d1406 100644 --- a/internal/asm/f32/stubs_noasm.go +++ b/internal/asm/f32/stubs_noasm.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f32 diff --git a/internal/asm/f64/axpy.go b/internal/asm/f64/axpy.go index 29dbddaa..4fc9e0eb 100644 --- a/internal/asm/f64/axpy.go +++ b/internal/asm/f64/axpy.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f64 diff --git a/internal/asm/f64/dot.go b/internal/asm/f64/dot.go index 39b43ecb..a6818507 100644 --- a/internal/asm/f64/dot.go +++ b/internal/asm/f64/dot.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f64 diff --git a/internal/asm/f64/ge_amd64.go b/internal/asm/f64/ge_amd64.go index 84355277..fda70a56 100644 --- a/internal/asm/f64/ge_amd64.go +++ b/internal/asm/f64/ge_amd64.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 !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package f64 diff --git a/internal/asm/f64/ge_noasm.go b/internal/asm/f64/ge_noasm.go index d4396987..0c46515c 100644 --- a/internal/asm/f64/ge_noasm.go +++ b/internal/asm/f64/ge_noasm.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f64 diff --git a/internal/asm/f64/l2norm_noasm.go b/internal/asm/f64/l2norm_noasm.go index c168f6ec..bfb8fba9 100644 --- a/internal/asm/f64/l2norm_noasm.go +++ b/internal/asm/f64/l2norm_noasm.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f64 diff --git a/internal/asm/f64/scal.go b/internal/asm/f64/scal.go index 3fbed161..5269e9b0 100644 --- a/internal/asm/f64/scal.go +++ b/internal/asm/f64/scal.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f64 diff --git a/internal/asm/f64/stubs_amd64.go b/internal/asm/f64/stubs_amd64.go index 92841ea2..bb9f4785 100644 --- a/internal/asm/f64/stubs_amd64.go +++ b/internal/asm/f64/stubs_amd64.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 !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package f64 diff --git a/internal/asm/f64/stubs_noasm.go b/internal/asm/f64/stubs_noasm.go index 261dcdae..6fe9baf1 100644 --- a/internal/asm/f64/stubs_noasm.go +++ b/internal/asm/f64/stubs_noasm.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 || noasm || gccgo || safe // +build !amd64 noasm gccgo safe package f64 diff --git a/internal/math32/sqrt.go b/internal/math32/sqrt.go index 8a106276..afa428a1 100644 --- a/internal/math32/sqrt.go +++ b/internal/math32/sqrt.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 && !arm64) || noasm || gccgo || safe // +build !amd64,!arm64 noasm gccgo safe package math32 diff --git a/internal/math32/sqrt_amd64.go b/internal/math32/sqrt_amd64.go index 1bca1eb5..05df84ac 100644 --- a/internal/math32/sqrt_amd64.go +++ b/internal/math32/sqrt_amd64.go @@ -6,6 +6,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package math32 diff --git a/internal/math32/sqrt_arm64.go b/internal/math32/sqrt_arm64.go index 1bca1eb5..05df84ac 100644 --- a/internal/math32/sqrt_arm64.go +++ b/internal/math32/sqrt_arm64.go @@ -6,6 +6,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !noasm && !gccgo && !safe // +build !noasm,!gccgo,!safe package math32 diff --git a/mat/cblas_test.go b/mat/cblas_test.go index 6f3f8e2d..0532dfc6 100644 --- a/mat/cblas_test.go +++ b/mat/cblas_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 cblas // +build cblas package mat diff --git a/mat/index_bound_checks.go b/mat/index_bound_checks.go index a9acd1f0..59a9e047 100644 --- a/mat/index_bound_checks.go +++ b/mat/index_bound_checks.go @@ -4,6 +4,7 @@ // This file must be kept in sync with index_no_bound_checks.go. +//go:build bounds // +build bounds package mat diff --git a/mat/index_no_bound_checks.go b/mat/index_no_bound_checks.go index a15228a0..df8594e3 100644 --- a/mat/index_no_bound_checks.go +++ b/mat/index_no_bound_checks.go @@ -4,6 +4,7 @@ // This file must be kept in sync with index_bound_checks.go. +//go:build !bounds // +build !bounds package mat diff --git a/mat/offset.go b/mat/offset.go index 172aca6b..26c80a4c 100644 --- a/mat/offset.go +++ b/mat/offset.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 !safe // +build !safe package mat diff --git a/mat/offset_appengine.go b/mat/offset_appengine.go index 71b71c9f..be2ca78c 100644 --- a/mat/offset_appengine.go +++ b/mat/offset_appengine.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 safe // +build safe package mat diff --git a/mathext/internal/amos/amos_fortran_test.go b/mathext/internal/amos/amos_fortran_test.go index dbb28836..c9a90143 100644 --- a/mathext/internal/amos/amos_fortran_test.go +++ b/mathext/internal/amos/amos_fortran_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 fortran // +build fortran package amos diff --git a/mathext/internal/amos/amoslib/fortran.go b/mathext/internal/amos/amoslib/fortran.go index c2bad47b..b5fa8cc2 100644 --- a/mathext/internal/amos/amoslib/fortran.go +++ b/mathext/internal/amos/amoslib/fortran.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 fortran // +build fortran // Package amoslib is a wrapper around the Fortran amos library. diff --git a/spatial/barneshut/bounds.go b/spatial/barneshut/bounds.go index 841807d4..a015a503 100644 --- a/spatial/barneshut/bounds.go +++ b/spatial/barneshut/bounds.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 bounds // +build bounds package barneshut diff --git a/spatial/barneshut/no_bounds.go b/spatial/barneshut/no_bounds.go index 03925dfb..84f200e7 100644 --- a/spatial/barneshut/no_bounds.go +++ b/spatial/barneshut/no_bounds.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 !bounds // +build !bounds package barneshut diff --git a/unit/constant/defined_types.go b/unit/constant/defined_types.go index cf232851..b59394fa 100644 --- a/unit/constant/defined_types.go +++ b/unit/constant/defined_types.go @@ -4,6 +4,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/unit/constant/generate_constants.go b/unit/constant/generate_constants.go index 9a0bf220..fc9fe6d6 100644 --- a/unit/constant/generate_constants.go +++ b/unit/constant/generate_constants.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/unit/constant/generate_defined_types.go b/unit/constant/generate_defined_types.go index 5e32891e..aeaf68d0 100644 --- a/unit/constant/generate_defined_types.go +++ b/unit/constant/generate_defined_types.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 @@ -26,6 +27,7 @@ const definedTemplate = `// Code generated by "go generate gonum.org/v1/gonum/un // 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/unit/generate_unit.go b/unit/generate_unit.go index 7a09d17d..03c2014e 100644 --- a/unit/generate_unit.go +++ b/unit/generate_unit.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