func doList(client *sp.Client, parameters map[string]string) { e, err := client.ListWebhooks(parameters) if err != nil { log.Fatalf("ERROR: %s\n\nFor additional information try using `--verbose true`\n\n\n", err) return } else if e.Errors != nil { log.Fatalf("ERROR: %s.\n\nFor additional information try using `--verbose true`\n\n\n", e.Errors) return } else { for _, element := range e.Results { listSummaryPrinter(element) } } }