projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.0.1-2020.1.5
/
staticcheck
/
testdata
/
src
/
CheckBytesEqualIP
/
CheckBytesEqualIP.go
1
package pkg
2
3
import (
4
"bytes"
5
"net"
6
)
7
8
func fn() {
9
type T []byte
10
var i1, i2 net.IP
11
var b1, b2 []byte
12
var t1, t2 T
13
14
bytes.Equal(i1, i2) // want `use net\.IP\.Equal to compare net\.IPs, not bytes\.Equal`
15
bytes.Equal(b1, b2)
16
bytes.Equal(t1, t2)
17
18
bytes.Equal(i1, b1)
19
bytes.Equal(b1, i1)
20
}