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