You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
164 B

package utils
func FastEqual(a, b []byte) (same bool) {
if len(a) != len(b) {
return
}
for i, v := range a {
if v != b[i] {
return
}
}
return true
}