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