func getRietveldIssues(client *http.Client) (issues []rietveld.Issue, err error) { list, err := rietveld.Search(client) if err != nil { return nil, err } issues = list.Issues return }
func main() { list, err := rietveld.Search(nil) if err != nil { log.Fatal(err) return } fmt.Println(list) for _, issue := range list.Issues { fmt.Println(issue) } }