code: func (e *Event) IDToIndex(uuid string) uint64 {
  	lower := uuid[0:8] + uuid[9:13] + uuid[14:18]
  	upper := uuid[19:23] + uuid[24:36]
  	lowVal, err := strconv.ParseUint(lower, 16, 64)
  	if err != nil {
  		panic("Failed to convert " + lower)
  	}
  	highVal, err := strconv.ParseUint(upper, 16, 64)
  	if err != nil {
  		panic("Failed to convert " + upper)
  	}
  	return lowVal ^ highVal
  }
docs: // IDToIndex is a bit of a hack. This simulates the index generation to
  // convert an event ID into a WaitIndex.