Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 8a13401

Browse files
authored
all: add go:build lines (#23468)
Generated by go1.17 fmt ./...
1 parent 887902e commit 8a13401

59 files changed

Lines changed: 66 additions & 10 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

accounts/keystore/watch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build (darwin && !ios && cgo) || freebsd || (linux && !arm64) || netbsd || solaris
1718
// +build darwin,!ios,cgo freebsd linux,!arm64 netbsd solaris
1819

1920
package keystore

accounts/keystore/watch_fallback.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build (darwin && !cgo) || ios || (linux && arm64) || windows || (!darwin && !freebsd && !linux && !netbsd && !solaris)
1718
// +build darwin,!cgo ios linux,arm64 windows !darwin,!freebsd,!linux,!netbsd,!solaris
1819

1920
// This is the fallback implementation of directory watching.

cmd/utils/diskusage.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build !windows && !openbsd
1718
// +build !windows,!openbsd
1819

1920
package utils

cmd/utils/diskusage_openbsd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build openbsd
1718
// +build openbsd
1819

1920
package utils

common/fdlimit/fdlimit_bsd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build freebsd || dragonfly
1718
// +build freebsd dragonfly
1819

1920
package fdlimit

common/fdlimit/fdlimit_unix.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build linux || netbsd || openbsd || solaris
1718
// +build linux netbsd openbsd solaris
1819

1920
package fdlimit

core/mkalloc.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build none
1718
// +build none
1819

1920
/*

crypto/blake2b/blake2bAVX2_amd64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build go1.7 && amd64 && !gccgo && !appengine
56
// +build go1.7,amd64,!gccgo,!appengine
67

78
package blake2b

crypto/blake2b/blake2b_amd64.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5+
//go:build !go1.7 && amd64 && !gccgo && !appengine
56
// +build !go1.7,amd64,!gccgo,!appengine
67

78
package blake2b

crypto/blake2b/blake2b_f_fuzz.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build gofuzz
12
// +build gofuzz
23

34
package blake2b

0 commit comments

Comments
 (0)