Skip to content

Commit

Permalink
executable searchpages example
Browse files Browse the repository at this point in the history
  • Loading branch information
c2rad authored and andygrunwald committed Nov 18, 2018
1 parent 5202530 commit 553e8b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/searchpages/main.go
Expand Up @@ -48,7 +48,10 @@ func main() {

// SearchPages will page through results and pass each issue to appendFunc
// In this example, we'll search for all the issues in the target project
client.Issue.SearchPages(fmt.Sprintf(`project=%s`, strings.TrimSpace(jiraPK)), nil, appendFunc)
err = client.Issue.SearchPages(fmt.Sprintf(`project=%s`, strings.TrimSpace(jiraPK)), nil, appendFunc)
if err != nil {
log.Fatal(err)
}

fmt.Printf("%d issues found.\n", len(issues))

Expand Down

0 comments on commit 553e8b8

Please sign in to comment.