MCPcopy Create free account
hub / github.com/cli/cli / findNextPage

Function findNextPage

internal/codespaces/api/api.go:476–483  ·  view source on GitHub ↗
(linkValue string)

Source from the content-addressed store, hash-verified

474var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`)
475
476func findNextPage(linkValue string) string {
477 for _, m := range linkRE.FindAllStringSubmatch(linkValue, -1) {
478 if len(m) > 2 && m[2] == "next" {
479 return m[1]
480 }
481 }
482 return ""
483}
484
485func (a *API) GetOrgMemberCodespace(ctx context.Context, orgName string, userName string, codespaceName string) (*Codespace, error) {
486 perPage := 100

Callers 3

ListCodespacesMethod · 0.70
GetOrgMemberCodespaceMethod · 0.70
ListDevContainersMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected