MCPcopy Index your code
hub / github.com/cli/cli / findNextPage

Function findNextPage

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

Source from the content-addressed store, hash-verified

437var linkRE = regexp.MustCompile(`<([^>]+)>;\s*rel="([^"]+)"`)
438
439func findNextPage(linkValue string) string {
440 for _, m := range linkRE.FindAllStringSubmatch(linkValue, -1) {
441 if len(m) > 2 && m[2] == "next" {
442 return m[1]
443 }
444 }
445 return ""
446}
447
448func (a *API) GetOrgMemberCodespace(ctx context.Context, orgName string, userName string, codespaceName string) (*Codespace, error) {
449 perPage := 100

Callers 3

ListCodespacesMethod · 0.70
GetOrgMemberCodespaceMethod · 0.70
ListDevContainersMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected