mirror of
https://github.com/gonum/gonum.git
synced 2025-10-04 23:02:42 +08:00
all: run make builds pass with go master
Run gofmt go1.17 adds the new //go:build comments
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
// This file must be kept in sync with array_no_bound_checks.go.
|
// This file must be kept in sync with array_no_bound_checks.go.
|
||||||
|
|
||||||
|
//go:build bounds
|
||||||
// +build bounds
|
// +build bounds
|
||||||
|
|
||||||
package fftpack
|
package fftpack
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
// This file must be kept in sync with array_bound_checks.go.
|
// This file must be kept in sync with array_bound_checks.go.
|
||||||
|
|
||||||
|
//go:build !bounds
|
||||||
// +build !bounds
|
// +build !bounds
|
||||||
|
|
||||||
package fftpack
|
package fftpack
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build gofuzz
|
||||||
// +build gofuzz
|
// +build gofuzz
|
||||||
|
|
||||||
package fuzz
|
package fuzz
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
// This file is made available under a Creative Commons CC0 1.0
|
// This file is made available under a Creative Commons CC0 1.0
|
||||||
// Universal Public Domain Dedication.`)
|
// Universal Public Domain Dedication.`)
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !safe
|
||||||
// +build !safe
|
// +build !safe
|
||||||
|
|
||||||
package set
|
package set
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build safe
|
||||||
// +build safe
|
// +build safe
|
||||||
|
|
||||||
package set
|
package set
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !safe
|
||||||
// +build !safe
|
// +build !safe
|
||||||
|
|
||||||
package iterator
|
package iterator
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !safe
|
||||||
// +build !safe
|
// +build !safe
|
||||||
|
|
||||||
package iterator
|
package iterator
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build safe
|
||||||
// +build safe
|
// +build safe
|
||||||
|
|
||||||
package iterator
|
package iterator
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build 386
|
||||||
// +build 386
|
// +build 386
|
||||||
|
|
||||||
package layout_test
|
package layout_test
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build arm64
|
||||||
// +build arm64
|
// +build arm64
|
||||||
|
|
||||||
package layout_test
|
package layout_test
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build noasm || gccgo || safe
|
||||||
// +build noasm gccgo safe
|
// +build noasm gccgo safe
|
||||||
|
|
||||||
package layout_test
|
package layout_test
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !tomita
|
||||||
// +build !tomita
|
// +build !tomita
|
||||||
|
|
||||||
package topo
|
package topo
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build tomita
|
||||||
// +build tomita
|
// +build tomita
|
||||||
|
|
||||||
package topo
|
package topo
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package c128
|
package c128
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package c128
|
package c128
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package c64
|
package c64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package c64
|
package c64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package f32
|
package f32
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f32
|
package f32
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package f32
|
package f32
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f32
|
package f32
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !amd64 || noasm || gccgo || safe
|
||||||
// +build !amd64 noasm gccgo safe
|
// +build !amd64 noasm gccgo safe
|
||||||
|
|
||||||
package f64
|
package f64
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build (!amd64 && !arm64) || noasm || gccgo || safe
|
||||||
// +build !amd64,!arm64 noasm gccgo safe
|
// +build !amd64,!arm64 noasm gccgo safe
|
||||||
|
|
||||||
package math32
|
package math32
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package math32
|
package math32
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !noasm && !gccgo && !safe
|
||||||
// +build !noasm,!gccgo,!safe
|
// +build !noasm,!gccgo,!safe
|
||||||
|
|
||||||
package math32
|
package math32
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build cblas
|
||||||
// +build cblas
|
// +build cblas
|
||||||
|
|
||||||
package mat
|
package mat
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
// This file must be kept in sync with index_no_bound_checks.go.
|
// This file must be kept in sync with index_no_bound_checks.go.
|
||||||
|
|
||||||
|
//go:build bounds
|
||||||
// +build bounds
|
// +build bounds
|
||||||
|
|
||||||
package mat
|
package mat
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
// This file must be kept in sync with index_bound_checks.go.
|
// This file must be kept in sync with index_bound_checks.go.
|
||||||
|
|
||||||
|
//go:build !bounds
|
||||||
// +build !bounds
|
// +build !bounds
|
||||||
|
|
||||||
package mat
|
package mat
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !safe
|
||||||
// +build !safe
|
// +build !safe
|
||||||
|
|
||||||
package mat
|
package mat
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build safe
|
||||||
// +build safe
|
// +build safe
|
||||||
|
|
||||||
package mat
|
package mat
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build fortran
|
||||||
// +build fortran
|
// +build fortran
|
||||||
|
|
||||||
package amos
|
package amos
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build fortran
|
||||||
// +build fortran
|
// +build fortran
|
||||||
|
|
||||||
// Package amoslib is a wrapper around the Fortran amos library.
|
// Package amoslib is a wrapper around the Fortran amos library.
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build bounds
|
||||||
// +build bounds
|
// +build bounds
|
||||||
|
|
||||||
package barneshut
|
package barneshut
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !bounds
|
||||||
// +build !bounds
|
// +build !bounds
|
||||||
|
|
||||||
package barneshut
|
package barneshut
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
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
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
Reference in New Issue
Block a user