使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
了解如何使用 Google Cloud 产品库和框架在 Google Cloud上构建和迭代 Go 应用。
申请免费试用,开始在 Google Cloud 上构建和部署应用。
免费开始使用
利用 $300 免费赠金开始您的下一个项目
获享免费试用赠金和 20 多种产品的每月免费用量,构建和测试概念验证。
查看免费产品优惠
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-04-24。
[[["易于理解","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-24。"],[[["\u003cp\u003eThis documentation provides resources for building and iterating Go applications on Google Cloud, including guides, references, and solutions for common issues.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can learn to set up a Go development environment, build their first app, and utilize client libraries for Cloud APIs through provided tutorials.\u003c/p\u003e\n"],["\u003cp\u003eTraining modules are available to learn how to deploy Go applications on serverless platforms like Cloud Run, Cloud Functions, and App Engine.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation offers guidance on managing user authentication, session handling, and background processing, specifically with App Engine, Firestore, Pub/Sub, and Identity-Aware Proxy (IAP).\u003c/p\u003e\n"],["\u003cp\u003eA repository of Go sample code is available on GitHub, demonstrating various Google Cloud functionalities and providing practical examples.\u003c/p\u003e\n"]]],[],null,["# Go documentation\n================\n\n[Read product documentation](/go/docs/setup) Learn how to use Google Cloud product libraries and frameworks to\nbuild and iterate Go apps on Google Cloud.\nStart building and deploying on Google Cloud with a [free trial](https://console.cloud.google.com/freetrial). \n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n- Tutorial \n\n\n [Setting up a Go development environment](/go/docs/setup)\n\n- Tutorial \n\n\n [Getting started](/go/getting-started)\n\nfind_in_page\n\n### Reference\n\n- Technical \n\n\n [APIs and Go libraries](/go/docs/reference)\n\nRelated resources\n-----------------\n\nTraining and tutorials \nUse cases \nCode samples \nExplore self-paced training, use cases, reference architectures, and code samples with examples of how to use and connect Google Cloud services. Training \nTraining and tutorials\n\n### Deploy Go apps on Google Cloud serverless platforms\n\n\nIn this lab you explore the basics of Go by deploying a simple Go app to Cloud Run, Cloud Functions, and App Engine.\n\n\n[Learn more](https://www.cloudskillsboost.google/focuses/10532?parent=catalog) \nTraining \nTraining and tutorials\n\n### Getting started with Go on Google Cloud\n\n\nGet started with Go (Golang) by reviewing Go code, and then creating and deploying simple Go apps on Google Cloud.\n\n\n[Learn more](https://www.cloudskillsboost.google/course_templates/730) \nUse case \nUse cases\n\n### Authenticating users\n\n\nApps running on Google Cloud managed platforms such as App Engine can avoid managing user authentication and session management by using Identity-Aware Proxy (IAP) to control access to them.\n\nIAP App Engine\n\n\u003cbr /\u003e\n\n[Learn more](/go/getting-started/authenticate-users-with-iap) \nUse case \nUse cases\n\n### Handling sessions\n\n\nMany apps need session handling for authentication and user preferences. This tutorial shows how to handle sessions on App Engine.\n\nApp Engine Firestore\n\n\u003cbr /\u003e\n\n[Learn more](/go/getting-started/session-handling-with-firestore) \nUse case \nUse cases\n\n### Background processing\n\n\nMany apps need to do background processing outside of the context of a web request. This tutorial creates a web app that lets users input text to translate, and then displays a list of previous translations.\n\nApp Engine Pub/Sub Firestore\n\n\u003cbr /\u003e\n\n[Learn more](/go/getting-started/background-processing) \nCode sample \nCode Samples\n\n### Getting started with Go samples\n\n\nThis repository holds sample code written in Go that demonstrates Google Cloud.\n\n\n[Open GitHub\narrow_forward](https://github.com/GoogleCloudPlatform/golang-samples) \nCode sample \nCode Samples\n\n### Google Cloud Go samples\n\n\nSearch or browse all available Go code samples.\n\n\n[Get started](/docs/samples?l=go)\n\nRelated videos\n--------------"]]