code: func (br *BytesRef) bytesEquals(other []byte) bool {
  	if br.Length != len(other) {
  		return false
  	}
  	for i, v := range br.ToBytes() {
  		if v != other[i] {
  			return false
  		}
  	}
  	return true
  }
docs: /*
  Expert: compares the byte against another BytesRef, returning true if
  the bytes are equal.
  */