Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
8a134014
Unverified
Commit
8a134014
authored
Aug 25, 2021
by
Felix Lange
Committed by
GitHub
Aug 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
all: add go:build lines (#23468)
Generated by go1.17 fmt ./...
parent
887902ea
Changes
59
Hide whitespace changes
Inline
Side-by-side
Showing
59 changed files
with
66 additions
and
10 deletions
+66
-10
watch.go
accounts/keystore/watch.go
+1
-0
watch_fallback.go
accounts/keystore/watch_fallback.go
+1
-0
diskusage.go
cmd/utils/diskusage.go
+1
-0
diskusage_openbsd.go
cmd/utils/diskusage_openbsd.go
+1
-0
fdlimit_bsd.go
common/fdlimit/fdlimit_bsd.go
+1
-0
fdlimit_unix.go
common/fdlimit/fdlimit_unix.go
+1
-0
mkalloc.go
core/mkalloc.go
+1
-0
blake2bAVX2_amd64.go
crypto/blake2b/blake2bAVX2_amd64.go
+1
-0
blake2b_amd64.go
crypto/blake2b/blake2b_amd64.go
+1
-0
blake2b_f_fuzz.go
crypto/blake2b/blake2b_f_fuzz.go
+1
-0
blake2b_ref.go
crypto/blake2b/blake2b_ref.go
+1
-0
register.go
crypto/blake2b/register.go
+1
-0
arithmetic_decl.go
crypto/bls12381/arithmetic_decl.go
+1
-0
arithmetic_fallback.go
crypto/bls12381/arithmetic_fallback.go
+1
-0
arithmetic_x86_adx.go
crypto/bls12381/arithmetic_x86_adx.go
+1
-0
arithmetic_x86_noadx.go
crypto/bls12381/arithmetic_x86_noadx.go
+1
-0
bn256_fast.go
crypto/bn256/bn256_fast.go
+1
-0
bn256_slow.go
crypto/bn256/bn256_slow.go
+1
-0
gfp_decl.go
crypto/bn256/cloudflare/gfp_decl.go
+1
-0
gfp_generic.go
crypto/bn256/cloudflare/gfp_generic.go
+1
-0
dummy.go
crypto/secp256k1/dummy.go
+1
-0
panic_cb.go
crypto/secp256k1/panic_cb.go
+2
-2
scalar_mult_cgo.go
crypto/secp256k1/scalar_mult_cgo.go
+2
-2
scalar_mult_nocgo.go
crypto/secp256k1/scalar_mult_nocgo.go
+1
-0
secp256.go
crypto/secp256k1/secp256.go
+2
-2
signature_cgo.go
crypto/signature_cgo.go
+1
-0
signature_nocgo.go
crypto/signature_nocgo.go
+1
-0
signify_fuzz.go
crypto/signify/signify_fuzz.go
+1
-0
leveldb.go
ethdb/leveldb/leveldb.go
+1
-0
loudpanic.go
internal/debug/loudpanic.go
+1
-0
loudpanic_fallback.go
internal/debug/loudpanic_fallback.go
+1
-0
trace.go
internal/debug/trace.go
+2
-1
trace_fallback.go
internal/debug/trace_fallback.go
+2
-1
handler_go13.go
log/handler_go13.go
+1
-0
handler_go14.go
log/handler_go14.go
+1
-0
syslog.go
log/syslog.go
+1
-0
cpu_disabled.go
metrics/cpu_disabled.go
+1
-0
cpu_enabled.go
metrics/cpu_enabled.go
+1
-0
cputime_nop.go
metrics/cputime_nop.go
+1
-0
cputime_unix.go
metrics/cputime_unix.go
+1
-0
disk_nop.go
metrics/disk_nop.go
+1
-0
runtime_cgo.go
metrics/runtime_cgo.go
+1
-0
runtime_gccpufraction.go
metrics/runtime_gccpufraction.go
+1
-0
runtime_no_cgo.go
metrics/runtime_no_cgo.go
+1
-0
runtime_no_gccpufraction.go
metrics/runtime_no_gccpufraction.go
+1
-0
syslog.go
metrics/syslog.go
+1
-0
geth_android.go
mobile/geth_android.go
+1
-0
geth_ios.go
mobile/geth_ios.go
+1
-0
geth_other.go
mobile/geth_other.go
+1
-0
toobig_notwindows.go
p2p/netutil/toobig_notwindows.go
+2
-1
toobig_windows.go
p2p/netutil/toobig_windows.go
+2
-1
safe.go
rlp/safe.go
+1
-0
unsafe.go
rlp/unsafe.go
+1
-0
constants_unix.go
rpc/constants_unix.go
+1
-0
constants_unix_nocgo.go
rpc/constants_unix_nocgo.go
+1
-0
ipc_js.go
rpc/ipc_js.go
+1
-0
ipc_unix.go
rpc/ipc_unix.go
+1
-0
ipc_windows.go
rpc/ipc_windows.go
+1
-0
bls12381_fuzz.go
tests/fuzzers/bls12381/bls12381_fuzz.go
+1
-0
No files found.
accounts/keystore/watch.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build (darwin && !ios && cgo) || freebsd || (linux && !arm64) || netbsd || solaris
// +build darwin,!ios,cgo freebsd linux,!arm64 netbsd solaris
package
keystore
...
...
accounts/keystore/watch_fallback.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build (darwin && !cgo) || ios || (linux && arm64) || windows || (!darwin && !freebsd && !linux && !netbsd && !solaris)
// +build darwin,!cgo ios linux,arm64 windows !darwin,!freebsd,!linux,!netbsd,!solaris
// This is the fallback implementation of directory watching.
...
...
cmd/utils/diskusage.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !windows && !openbsd
// +build !windows,!openbsd
package
utils
...
...
cmd/utils/diskusage_openbsd.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build openbsd
// +build openbsd
package
utils
...
...
common/fdlimit/fdlimit_bsd.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build freebsd || dragonfly
// +build freebsd dragonfly
package
fdlimit
...
...
common/fdlimit/fdlimit_unix.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build linux || netbsd || openbsd || solaris
// +build linux netbsd openbsd solaris
package
fdlimit
...
...
core/mkalloc.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build none
// +build none
/*
...
...
crypto/blake2b/blake2bAVX2_amd64.go
View file @
8a134014
...
...
@@ -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 go1.7 && amd64 && !gccgo && !appengine
// +build go1.7,amd64,!gccgo,!appengine
package
blake2b
...
...
crypto/blake2b/blake2b_amd64.go
View file @
8a134014
...
...
@@ -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 !go1.7 && amd64 && !gccgo && !appengine
// +build !go1.7,amd64,!gccgo,!appengine
package
blake2b
...
...
crypto/blake2b/blake2b_f_fuzz.go
View file @
8a134014
//go:build gofuzz
// +build gofuzz
package
blake2b
...
...
crypto/blake2b/blake2b_ref.go
View file @
8a134014
...
...
@@ -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 || appengine || gccgo
// +build !amd64 appengine gccgo
package
blake2b
...
...
crypto/blake2b/register.go
View file @
8a134014
...
...
@@ -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 go1.9
// +build go1.9
package
blake2b
...
...
crypto/bls12381/arithmetic_decl.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build (amd64 && blsasm) || (amd64 && blsadx)
// +build amd64,blsasm amd64,blsadx
package
bls12381
...
...
crypto/bls12381/arithmetic_fallback.go
View file @
8a134014
...
...
@@ -31,6 +31,7 @@
// Package bls (generated by goff) contains field arithmetics operations
//go:build !amd64 || (!blsasm && !blsadx)
// +build !amd64 !blsasm,!blsadx
package
bls12381
...
...
crypto/bls12381/arithmetic_x86_adx.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build amd64 && blsadx
// +build amd64,blsadx
package
bls12381
...
...
crypto/bls12381/arithmetic_x86_noadx.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build amd64 && blsasm
// +build amd64,blsasm
package
bls12381
...
...
crypto/bn256/bn256_fast.go
View file @
8a134014
...
...
@@ -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
// +build amd64 arm64
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
...
...
crypto/bn256/bn256_slow.go
View file @
8a134014
...
...
@@ -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
// +build !amd64,!arm64
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
...
...
crypto/bn256/cloudflare/gfp_decl.go
View file @
8a134014
//go:build (amd64 && !generic) || (arm64 && !generic)
// +build amd64,!generic arm64,!generic
package
bn256
...
...
crypto/bn256/cloudflare/gfp_generic.go
View file @
8a134014
//go:build (!amd64 && !arm64) || generic
// +build !amd64,!arm64 generic
package
bn256
...
...
crypto/secp256k1/dummy.go
View file @
8a134014
//go:build dummy
// +build dummy
// This file is part of a workaround for `go mod vendor` which won't vendor
...
...
crypto/secp256k1/panic_cb.go
View file @
8a134014
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
+build !gofuzz
// +build cgo
//
go:build !gofuzz && cgo
// +build
!gofuzz,
cgo
package
secp256k1
...
...
crypto/secp256k1/scalar_mult_cgo.go
View file @
8a134014
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
+build !gofuzz
// +build cgo
//
go:build !gofuzz && cgo
// +build
!gofuzz,
cgo
package
secp256k1
...
...
crypto/secp256k1/scalar_mult_nocgo.go
View file @
8a134014
...
...
@@ -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 || !cgo
// +build gofuzz !cgo
package
secp256k1
...
...
crypto/secp256k1/secp256.go
View file @
8a134014
...
...
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
+build !gofuzz
// +build cgo
//
go:build !gofuzz && cgo
// +build
!gofuzz,
cgo
// Package secp256k1 wraps the bitcoin secp256k1 C library.
package
secp256k1
...
...
crypto/signature_cgo.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !nacl && !js && cgo && !gofuzz
// +build !nacl,!js,cgo,!gofuzz
package
crypto
...
...
crypto/signature_nocgo.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build nacl || js || !cgo || gofuzz
// +build nacl js !cgo gofuzz
package
crypto
...
...
crypto/signify/signify_fuzz.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build gofuzz
// +build gofuzz
package
signify
...
...
ethdb/leveldb/leveldb.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !js
// +build !js
// Package leveldb implements the key-value database layer based on LevelDB.
...
...
internal/debug/loudpanic.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build go1.6
// +build go1.6
package
debug
...
...
internal/debug/loudpanic_fallback.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !go1.6
// +build !go1.6
package
debug
...
...
internal/debug/trace.go
View file @
8a134014
...
...
@@ -14,7 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//+build go1.5
//go:build go1.5
// +build go1.5
package
debug
...
...
internal/debug/trace_fallback.go
View file @
8a134014
...
...
@@ -14,7 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//+build !go1.5
//go:build !go1.5
// +build !go1.5
// no-op implementation of tracing methods for Go < 1.5.
...
...
log/handler_go13.go
View file @
8a134014
//go:build !go1.4
// +build !go1.4
package
log
...
...
log/handler_go14.go
View file @
8a134014
//go:build go1.4
// +build go1.4
package
log
...
...
log/syslog.go
View file @
8a134014
//go:build !windows && !plan9
// +build !windows,!plan9
package
log
...
...
metrics/cpu_disabled.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build ios || js
// +build ios js
package
metrics
...
...
metrics/cpu_enabled.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !ios && !js
// +build !ios,!js
package
metrics
...
...
metrics/cputime_nop.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build windows || js
// +build windows js
package
metrics
...
...
metrics/cputime_unix.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !windows && !js
// +build !windows,!js
package
metrics
...
...
metrics/disk_nop.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !linux
// +build !linux
package
metrics
...
...
metrics/runtime_cgo.go
View file @
8a134014
//go:build cgo && !appengine && !js
// +build cgo,!appengine,!js
package
metrics
...
...
metrics/runtime_gccpufraction.go
View file @
8a134014
//go:build go1.5
// +build go1.5
package
metrics
...
...
metrics/runtime_no_cgo.go
View file @
8a134014
//go:build !cgo || appengine || js
// +build !cgo appengine js
package
metrics
...
...
metrics/runtime_no_gccpufraction.go
View file @
8a134014
//go:build !go1.5
// +build !go1.5
package
metrics
...
...
metrics/syslog.go
View file @
8a134014
//go:build !windows
// +build !windows
package
metrics
...
...
mobile/geth_android.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build android
// +build android
package
geth
...
...
mobile/geth_ios.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build ios
// +build ios
package
geth
...
...
mobile/geth_other.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !android && !ios
// +build !android,!ios
package
geth
...
...
p2p/netutil/toobig_notwindows.go
View file @
8a134014
...
...
@@ -14,7 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//+build !windows
//go:build !windows
// +build !windows
package
netutil
...
...
p2p/netutil/toobig_windows.go
View file @
8a134014
...
...
@@ -14,7 +14,8 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//+build windows
//go:build windows
// +build windows
package
netutil
...
...
rlp/safe.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build nacl || js || !cgo
// +build nacl js !cgo
package
rlp
...
...
rlp/unsafe.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !nacl && !js && cgo
// +build !nacl,!js,cgo
package
rlp
...
...
rpc/constants_unix.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
package
rpc
...
...
rpc/constants_unix_nocgo.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build !cgo && !windows
// +build !cgo,!windows
package
rpc
...
...
rpc/ipc_js.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build js
// +build js
package
rpc
...
...
rpc/ipc_unix.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
package
rpc
...
...
rpc/ipc_windows.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build windows
// +build windows
package
rpc
...
...
tests/fuzzers/bls12381/bls12381_fuzz.go
View file @
8a134014
...
...
@@ -14,6 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
//go:build gofuzz
// +build gofuzz
package
bls
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment