(cands []base.Candidate, text string, typ base.CandidateType)
| 206 | } |
| 207 | |
| 208 | func hasCandidate(cands []base.Candidate, text string, typ base.CandidateType) bool { |
| 209 | for _, c := range cands { |
| 210 | if c.Text == text && c.Type == typ { |
| 211 | return true |
| 212 | } |
| 213 | } |
| 214 | return false |
| 215 | } |
| 216 | |
| 217 | func candidateSummary(cands []base.Candidate) []string { |
| 218 | out := make([]string, 0, len(cands)) |