(names []string)
| 733 | } |
| 734 | |
| 735 | func previewNamesToMIMETypes(names []string) string { |
| 736 | types := []string{fmt.Sprintf("application/vnd.github.%s-preview+json", names[0])} |
| 737 | for _, p := range names[1:] { |
| 738 | types = append(types, fmt.Sprintf("application/vnd.github.%s-preview", p)) |
| 739 | } |
| 740 | return strings.Join(types, ", ") |
| 741 | } |