[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-216":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":9,"totalLinesOfCode":9,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":9,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":18,"lastSyncTime":35,"discoverSource":36},216,"google-cloud-go","googleapis\u002Fgoogle-cloud-go","googleapis","Google Cloud Client Libraries for Go.",null,"https:\u002F\u002Fgithub.com\u002Fgoogleapis\u002Fgoogle-cloud-go","Go",4460,1541,258,279,0,1,2,12,3,31.56,false,"main",[25,26,27,28,29,30,31],"google-cloud","golang","go","cloud-datastore","cloud-storage","cloud-pubsub","cloud-bigquery","2026-06-12 02:00:10","# Google Cloud Client Libraries for Go\n\n[![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fcloud.google.com\u002Fgo.svg)](https:\u002F\u002Fpkg.go.dev\u002Fcloud.google.com\u002Fgo)\n\nGo packages for [Google Cloud Platform](https:\u002F\u002Fcloud.google.com) services.\n\n## Installation\n\n```bash\ngo get cloud.google.com\u002Fgo\u002Ffirestore@latest # Replace firestore with the package you want to use.\n```\n\n**NOTE:** Some of these packages are under development, and may occasionally\nmake backwards-incompatible changes.\n\n## Supported APIs\n\nFor an updated list of all of our released APIs please see our\n[reference docs](https:\u002F\u002Fcloud.google.com\u002Fgo\u002Fdocs\u002Freference).\n\n## [Go Versions Supported](#supported-versions)\n\nOur libraries are compatible with the two most recent major Go\nreleases, the same [policy](https:\u002F\u002Fgo.dev\u002Fdoc\u002Fdevel\u002Frelease#policy) the Go\nprogramming language follows. This means the currently supported versions are:\n\n- Go 1.25\n- Go 1.26\n\n## Authentication\n\nBy default, each client library will use [Application Default Credentials](https:\u002F\u002Fdevelopers.google.com\u002Fidentity\u002Fprotocols\u002Fapplication-default-credentials)\n(ADC) to automatically configure the credentials used in calling the API endpoint.\nWhen using the libraries in a Google Cloud Platform environment such as Compute\nEngine, Kubernetes Engine, or App Engine, no additional authentication steps are\nnecessary. See [Authentication methods at Google](https:\u002F\u002Fcloud.google.com\u002Fdocs\u002Fauthentication)\nand [Authenticate for using client libraries](https:\u002F\u002Fcloud.google.com\u002Fdocs\u002Fauthentication\u002Fclient-libraries)\nfor more information.\n\n```go\nclient, err := storage.NewClient(ctx)\n```\n\nFor applications running elsewhere, such as your local development environment,\nyou can use the `gcloud auth application-default login` command from the\n[Google Cloud CLI](https:\u002F\u002Fcloud.google.com\u002Fcli) to set user credentials in\nyour local filesystem. Application Default Credentials will automatically detect\nthese credentials. See [Set up ADC for a local development\nenvironment](https:\u002F\u002Fcloud.google.com\u002Fdocs\u002Fauthentication\u002Fset-up-adc-local-dev-environment)\nfor more information.\n\nAlternately, you may need to provide an explicit path to your credentials. To authenticate\nusing a [service account](https:\u002F\u002Fcloud.google.com\u002Fdocs\u002Fauthentication#service-accounts)\nkey file, either set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to the path\nto your key file, or programmatically pass\n[`option.WithCredentialsFile`](https:\u002F\u002Fpkg.go.dev\u002Fgoogle.golang.org\u002Fapi\u002Foption#WithCredentialsFile)\nto the `NewClient` function of the desired package. For example:\n\n```go\nclient, err := storage.NewClient(ctx, option.WithCredentialsFile(\"path\u002Fto\u002Fkeyfile.json\"))\n```\n\nYou can exert even more control over authentication by using the\n[credentials](https:\u002F\u002Fpkg.go.dev\u002Fcloud.google.com\u002Fgo\u002Fauth\u002Fcredentials) package to\ncreate an [auth.Credentials](https:\u002F\u002Fpkg.go.dev\u002Fcloud.google.com\u002Fgo\u002Fauth#Credentials).\nThen pass [`option.WithAuthCredentials`](https:\u002F\u002Fpkg.go.dev\u002Fgoogle.golang.org\u002Fapi\u002Foption#WithAuthCredentials)\nto the `NewClient` function:\n\n```go\ncreds, err := credentials.DetectDefault(&credentials.DetectOptions{...})\n...\nclient, err := storage.NewClient(ctx, option.WithAuthCredentials(creds))\n```\n\n## Contributing\n\nContributions are welcome. Please, see the\n[CONTRIBUTING](https:\u002F\u002Fgithub.com\u002FGoogleCloudPlatform\u002Fgoogle-cloud-go\u002Fblob\u002Fmain\u002FCONTRIBUTING.md)\ndocument for details.\n\nPlease note that this project is released with a Contributor Code of Conduct.\nBy participating in this project you agree to abide by its terms.\nSee [Contributor Code of Conduct](https:\u002F\u002Fgithub.com\u002FGoogleCloudPlatform\u002Fgoogle-cloud-go\u002Fblob\u002Fmain\u002FCONTRIBUTING.md#contributor-code-of-conduct)\nfor more information.\n\n## Links\n\n- [Go on Google Cloud](https:\u002F\u002Fcloud.google.com\u002Fgo\u002Fhome)\n- [Getting started with Go on Google Cloud](https:\u002F\u002Fcloud.google.com\u002Fgo\u002Fgetting-started)\n- [App Engine Quickstart](https:\u002F\u002Fcloud.google.com\u002Fappengine\u002Fdocs\u002Fstandard\u002Fgo\u002Fquickstart)\n- [Cloud Functions Quickstart](https:\u002F\u002Fcloud.google.com\u002Ffunctions\u002Fdocs\u002Fquickstart-go)\n- [Cloud Run Quickstart](https:\u002F\u002Fcloud.google.com\u002Frun\u002Fdocs\u002Fquickstarts\u002Fbuild-and-deploy#go)\n","该项目是为Google Cloud Platform服务提供的一系列Go语言客户端库。它支持多种Google云服务，如Cloud Datastore、Cloud Storage、Cloud Pub\u002FSub和BigQuery等，使得开发者能够轻松地通过Go语言与这些服务进行交互。项目采用了Application Default Credentials机制简化了认证过程，在Google Cloud环境中几乎无需额外配置即可使用；对于本地开发环境或其他非Google Cloud环境，也可以通过设置特定的环境变量或编程方式指定认证文件来实现访问。适合于需要利用Google Cloud服务构建应用程序的Go语言开发者使用。","2026-06-11 02:31:36","trending"]