MCPcopy Create free account
hub / github.com/driangle/taskmd / toCommaSeparated

Function toCommaSeparated

apps/cli/internal/sync/github/github.go:203–218  ·  view source on GitHub ↗
(val any)

Source from the content-addressed store, hash-verified

201}
202
203func toCommaSeparated(val any) string {
204 switch v := val.(type) {
205 case string:
206 return v
207 case []any:
208 parts := make([]string, len(v))
209 for i, item := range v {
210 parts[i] = fmt.Sprint(item)
211 }
212 return strings.Join(parts, ",")
213 case []string:
214 return strings.Join(v, ",")
215 default:
216 return fmt.Sprint(v)
217 }
218}
219
220func fetchPage(client *http.Client, apiURL string, params url.Values, token string, page int) ([]ghIssue, bool, error) {
221 params.Set("page", strconv.Itoa(page))

Callers 1

buildQueryParamsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected