(names []string)
| 700 | } |
| 701 | |
| 702 | func previewNamesToMIMETypes(names []string) string { |
| 703 | types := []string{fmt.Sprintf("application/vnd.github.%s-preview+json", names[0])} |
| 704 | for _, p := range names[1:] { |
| 705 | types = append(types, fmt.Sprintf("application/vnd.github.%s-preview", p)) |
| 706 | } |
| 707 | return strings.Join(types, ", ") |
| 708 | } |