package resolution func indexOf(out []map[string]any, id string) int { for i, r := range out { if r["id"] == id { return i } } return -1 }