tree: f031558cfce64c6c5c7278c7517ab00ab1cd2572 [path history] [tgz]
  1. .github/
  2. analytics/
  3. area120/
  4. asset/
  5. assuredworkloads/
  6. automl/
  7. bigquery/
  8. bigtable/
  9. billing/
  10. civil/
  11. cloudbuild/
  12. cloudtasks/
  13. cmd/
  14. compute/
  15. container/
  16. containeranalysis/
  17. datacatalog/
  18. dataproc/
  19. datastore/
  20. debugger/
  21. dialogflow/
  22. dlp/
  23. errorreporting/
  24. firestore/
  25. functions/
  26. gaming/
  27. grafeas/
  28. httpreplay/
  29. iam/
  30. internal/
  31. iot/
  32. kms/
  33. language/
  34. logging/
  35. longrunning/
  36. memcache/
  37. monitoring/
  38. notebooks/
  39. osconfig/
  40. oslogin/
  41. phishingprotection/
  42. policytroubleshooter/
  43. profiler/
  44. pubsub/
  45. pubsublite/
  46. recaptchaenterprise/
  47. recommender/
  48. redis/
  49. rpcreplay/
  50. scheduler/
  51. secretmanager/
  52. security/
  53. securitycenter/
  54. servicedirectory/
  55. spanner/
  56. speech/
  57. storage/
  58. talent/
  59. texttospeech/
  60. third_party/
  61. trace/
  62. translate/
  63. video/
  64. videointelligence/
  65. vision/
  66. webrisk/
  67. workflows/
  68. .gitignore
  72. doc.go
  73. examples_test.go
  74. go.mod
  75. go.sum
  77. license_test.go
  81. tools.go

Google Cloud Client Libraries for Go


Go packages for Google Cloud Platform services.

import ""

To install the packages on your system, do not clone the repo. Instead:

  1. Change to your project directory:

    cd /my/cloud/project
  2. Get the package you want to use. Some products have their own module, so it's best to go get the package(s) you want to use:

    $ go get # Replace with the package you want to use.

NOTE: Some of these packages are under development, and may occasionally make backwards-incompatible changes.

NOTE: Github repo is a mirror of

Supported APIs

Google APIStatusPackage
Data Loss
Text To

Alpha status: the API is still being actively developed. As a result, it might change in backward-incompatible ways and is not recommended for production use.

Beta status: the API is largely complete, but still has outstanding features and bugs to be addressed. There may be minor backwards-incompatible changes where necessary.

Stable status: the API is mature and ready for production use. We will continue addressing bugs and feature requests.

Documentation and examples are available at

Go Versions Supported

We currently support Go versions 1.11 and newer.


By default, each API will use Google Application Default Credentials for authorization credentials used in calling the API endpoints. This will allow your application to run in many environments without requiring explicit configuration.

client, err := storage.NewClient(ctx)

To authorize using a JSON key file, pass option.WithCredentialsFile to the NewClient function of the desired package. For example:

client, err := storage.NewClient(ctx, option.WithCredentialsFile("path/to/keyfile.json"))

You can exert more control over authorization by using the package to create an oauth2.TokenSource. Then pass option.WithTokenSource to the NewClient function: snip:# (auth-ts)

tokenSource := ...
client, err := storage.NewClient(ctx, option.WithTokenSource(tokenSource))


Contributions are welcome. Please, see the CONTRIBUTING document for details.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See Contributor Code of Conduct for more information.