examples: temporarily comment out test, again
This example broke again. I will fix it once more with #469,
if it breaks again after this we should reach out to the
backend team.
Change-Id: Ibe5c86a03fbdc9bea23fe0c1551bb02a9bf73f80
Reviewed-on: https://code-review.googlesource.com/c/google-api-go-client/+/54912
Reviewed-by: Tyler Bui-Palsulich <tbp@google.com>
diff --git a/examples/customsearch.go b/examples/customsearch.go
index 5e26beb..2f1609a 100644
--- a/examples/customsearch.go
+++ b/examples/customsearch.go
@@ -4,36 +4,28 @@
package main
-import (
- "fmt"
- "log"
- "net/http"
-
- customsearch "google.golang.org/api/customsearch/v1"
- "google.golang.org/api/googleapi/transport"
-)
-
-const (
- apiKey = "some-api-key"
- cx = "some-custom-search-engine-id"
- query = "some-custom-query"
-)
-
-func customSearchMain() {
- client := &http.Client{Transport: &transport.APIKey{Key: apiKey}}
-
- svc, err := customsearch.New(client)
- if err != nil {
- log.Fatal(err)
- }
-
- resp, err := svc.Cse.List().Q(query).Cx(cx).Do()
- if err != nil {
- log.Fatal(err)
- }
-
- for i, result := range resp.Items {
- fmt.Printf("#%d: %s\n", i+1, result.Title)
- fmt.Printf("\t%s\n", result.Snippet)
- }
-}
+// TODO(codyoss): uncomment after next generation and fix
+// const (
+// apiKey = "some-api-key"
+// cx = "some-custom-search-engine-id"
+// query = "some-custom-query"
+// )
+//
+// func customSearchMain() {
+// client := &http.Client{Transport: &transport.APIKey{Key: apiKey}}
+//
+// svc, err := customsearch.New(client)
+// if err != nil {
+// log.Fatal(err)
+// }
+//
+// resp, err := svc.Cse.List().Q(query).Cx(cx).Do()
+// if err != nil {
+// log.Fatal(err)
+// }
+//
+// for i, result := range resp.Items {
+// fmt.Printf("#%d: %s\n", i+1, result.Title)
+// fmt.Printf("\t%s\n", result.Snippet)
+// }
+// }