(names []string)
| 726 | } |
| 727 | |
| 728 | func previewNamesToMIMETypes(names []string) string { |
| 729 | types := []string{fmt.Sprintf("application/vnd.github.%s-preview+json", names[0])} |
| 730 | for _, p := range names[1:] { |
| 731 | types = append(types, fmt.Sprintf("application/vnd.github.%s-preview", p)) |
| 732 | } |
| 733 | return strings.Join(types, ", ") |
| 734 | } |