Go 版 Cloud 客户端库与两个最新的 Go 主要版本兼容,这与 Go 编程语言遵循的政策相同。这意味着 Go 版 Cloud 客户端库与所有受支持的 Go 版本兼容。例如,如果当前 Go 版本是 Go 1.24,则 Go 版 Cloud 客户端库与 Go 1.23 和 Go 1.24 兼容。如需详细了解 Cloud 客户端库,请参阅客户端库说明。
新开发
启动新项目时,如果可能,我们建议选择 Go 的当前版本。这可确保您的运行时在受支持的 Go 版本中,并可接收关键安全补丁程序。
使生产系统保持最新
请确保将生产系统保留在受支持的 Go 运行时上是确保获得关键安全和问题修复的最佳方式。我们的 Go Cloud 客户端放弃与早期 Go 运行时版本的兼容性时,会递增次要版本。如需详细了解如何使用主要版本和次要版本,请参阅语义版本控制。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-04-22。"],[[["\u003cp\u003eCloud Client Libraries for Go support the two most recent major Go releases, aligning with the Go programming language's release policy.\u003c/p\u003e\n"],["\u003cp\u003eNew projects should use the current Go release to maintain compatibility and receive security patches.\u003c/p\u003e\n"],["\u003cp\u003eProduction systems should remain on supported Go runtimes to get vital security and bug fixes.\u003c/p\u003e\n"],["\u003cp\u003eCloud Client Libraries increment a minor version when dropping compatibility with an older Go runtime version.\u003c/p\u003e\n"],["\u003cp\u003eThe supported Go versions can be found in the \u003ca href=\"https://github.com/googleapis/google-cloud-go#go-versions-supported\"\u003egoogle-cloud-go README\u003c/a\u003e.\u003c/p\u003e\n"]]],[],null,["# Supported Go Versions\n\nCloud Client Libraries for Go are compatible with the two most-recent major Go\nreleases, the same [policy](https://go.dev/doc/devel/release#policy)\nthe Go programming language follows. This means that Cloud Client Libraries for Go\nare compatible with [all supported Go releases](https://go.dev/doc/devel/release).\nFor example, if the current Go release is Go 1.24, the Cloud Client Libraries for Go\nare compatible with Go 1.23 and Go 1.24. For more information on\nCloud Client Libraries, see [Client libraries explained](/apis/docs/client-libraries-explained).\n\nFor new development\n-------------------\n\nWhen starting a new project, we recommend choosing the current release of Go if\npossible. This ensures that your runtime is within the supported Go releases and\nreceives critical security patches.\n\nKeeping production systems current\n----------------------------------\n\nKeeping your production systems on supported Go runtimes is the best way to\nensure that you receive critical security and bug fixes. Our Go\nCloud Client Libraries increment a minor version when dropping compatibility with\nan earlier Go runtime version. For more information about the use of major and\nminor versions, see\n[Semantic Versioning](https://semver.org/).\n\nWhere to find version information\n---------------------------------\n\nTo find out what Go versions are supported, see the\n[google-cloud-go README](https://github.com/googleapis/google-cloud-go#go-versions-supported)."]]