(quickstarts []auth0.Quickstart)
| 29 | } |
| 30 | |
| 31 | func (r *Renderer) QuickstartList(quickstarts []auth0.Quickstart) { |
| 32 | r.Heading() |
| 33 | |
| 34 | sort.SliceStable(quickstarts, func(i, j int) bool { |
| 35 | return quickstarts[i].AppType < quickstarts[j].AppType |
| 36 | }) |
| 37 | |
| 38 | var results []View |
| 39 | for _, qs := range quickstarts { |
| 40 | results = append(results, &quickstartView{ |
| 41 | Stack: qs.Name, |
| 42 | AppType: ApplyColorToFriendlyAppType(qsAppTypeFor(qs.AppType)), |
| 43 | URL: fmt.Sprintf("%s%s", qsBaseURL, qs.URL), |
| 44 | raw: qs, |
| 45 | }) |
| 46 | } |
| 47 | |
| 48 | r.Results(results) |
| 49 | } |
| 50 | |
| 51 | func qsAppTypeFor(s string) string { |
| 52 | switch s { |
no test coverage detected