go-ethereum/p2p
Daniel Liu fbecb8c5a5 all: fix staticcheck warning ST1006: don't use generic name self
The name of a method’s receiver should be a reflection of its identity;
often a one or two letter abbreviation of its type suffices (such as
“c” or “cl” for “Client”). Don’t use generic names such as “me”, “this”
or “self”, identifiers typical of object-oriented languages that place
more emphasis on methods as opposed to functions. The name need not be
as descriptive as that of a method argument, as its role is obvious and
serves no documentary purpose. It can be very short as it will appear
on almost every line of every method of the type; familiarity admits
brevity. Be consistent, too: if you call the receiver “c” in one method,
don’t call it “cl” in another.
2024-10-25 21:30:54 +08:00
..
discover all: change format 0x%x to %#x (#25221) 2024-09-27 15:24:31 +08:00
discv5 all: fix staticcheck warning S1039: unnecessary use of fmt.Sprintf 2024-10-24 12:49:37 +08:00
enr Revert EIP-2464 2024-08-24 02:31:27 +07:00
nat Revert EIP-2464 2024-08-24 02:31:27 +07:00
netutil Revert EIP-2464 2024-08-24 02:31:27 +07:00
protocols Revert EIP-2464 2024-08-24 02:31:27 +07:00
simulations all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
testing all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
dial.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
dial_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
message.go all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
message_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
metrics.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
peer.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
peer_error.go all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
peer_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
protocol.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
rlpx.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
rlpx_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00
server.go all: fix staticcheck warning ST1005: incorrectly formatted error string 2024-10-24 09:48:20 +08:00
server_test.go Revert EIP-2464 2024-08-24 02:31:27 +07:00