func StringFromUUID(id *events.UUID) string { var u [16]byte binary.LittleEndian.PutUint64(u[:8], id.GetLow()) binary.LittleEndian.PutUint64(u[8:], id.GetHigh()) return fmt.Sprintf("%x-%x-%x-%x-%x", u[0:4], u[4:6], u[6:8], u[8:10], u[10:]) }
func formatUUID(uuid *events.UUID) string { var uuidBytes [16]byte binary.LittleEndian.PutUint64(uuidBytes[:8], uuid.GetLow()) binary.LittleEndian.PutUint64(uuidBytes[8:], uuid.GetHigh()) return fmt.Sprintf("%x-%x-%x-%x-%x", uuidBytes[0:4], uuidBytes[4:6], uuidBytes[6:8], uuidBytes[8:10], uuidBytes[10:]) }