这是用户在 2025-8-2 19:22 为 https://go.dev/learn/ 保存的双语快照页面,由 沉浸式翻译 提供双语支持。了解如何保存?

Install the latest version of Go
安装 Go 的最新版本

Install the latest version of Go. For instructions to download and install the Go compilers, tools, and libraries, view the install documentation.
安装最新版本的 Go。有关下载和安装 Go 编译器、工具及库的说明,请查看安装文档。

Go Gopher riding a motorcycle

Selected tutorials  精选教程

New to Go and don't know where to start?
刚接触 Go 语言,不知从何开始?

  • Documentation  文档

    Everything there is to know about Go. Get started on a new project or brush up for your existing Go code.
    关于 Go 的一切知识。开始一个新项目或温习您现有的 Go 代码。

  • Tour of Go  Go 语言之旅

    An interactive introduction to Go in four sections. Each section concludes with a few exercises so you can practice what you've learned.
    Go 语言四部分交互式入门教程。每部分结尾均配有若干练习,便于实践所学知识。

  • Go by example  示例学习

    Go by Example is a hands-on introduction to Go using annotated example programs. It’s a great starting point to use when tackling any Go project.
    Go by Example 是一份通过带注释的示例程序学习 Go 的动手实践教程。它是攻克任何 Go 项目时的绝佳入门参考。

Guided learning journeys
引导式学习旅程

Got the basics and want to learn more?
掌握了基础知识并想要深入学习吗?

  • Web Dev  Web 开发

    Go Web Examples provides easy to understand code snippets on how to use Go for web development.
    Go Web Examples 提供了易于理解的代码片段,展示如何使用 Go 进行 Web 开发。

  • CLIs  命令行界面

    This workshop will walk you through building a CLI app with Go, introducing you to basic Go principles and CLI frameworks along the way.
    本次研讨会将引导您使用 Go 语言构建一个命令行界面应用程序,在此过程中向您介绍 Go 的基础原理及命令行框架。

  • New to coding?  刚接触编程?

    Get started with this introductory course covering basic programming principles and Go fundamentals.
    开始学习这门入门课程,涵盖基础编程原理与 Go 语言基础知识。

Tutorials  教程

  • Getting started  入门指南

    In this tutorial, you'll get a brief introduction to Go programming. Along the way, you will install Go, write some simple "Hello, world" code, use the go command to run your code, use the Go package discovery tool, and call functions of an external module.
    在本教程中,您将简要了解 Go 编程。过程中您将安装 Go 语言环境、编写简单的"你好,世界"代码、使用 go 命令运行代码、运用 Go 包发现工具,并调用外部模块的函数。

  • Create a module  创建一个模块

    This is the first part of a tutorial that introduces a few fundamental features of the Go language. In this tutorial you'll create two modules. The first is a library which is intended to be imported by other libraries or applications. The second is a caller application which will use the first.
    本教程是介绍 Go 语言几项基础功能的第一部分。在本教程中,您将创建两个模块:第一个是可供其他库或应用程序导入的库模块,第二个则是使用该库的调用方应用程序模块。

  • Developing a web service
    开发 Web 服务

    This tutorial introduces the basics of writing a RESTful web service API with Go and the Gin Web Framework. In this tutorial, you will build a RESTful API server with two endpoints.
    本教程介绍使用 Go 语言和 Gin Web 框架编写 RESTful Web 服务 API 的基础知识。在本教程中,您将构建一个包含两个端点的 RESTful API 服务器。

Training  训练

Guided tours of Go programs
Go 程序的引导式导览

  • Ardan Labs

    Offering customized on-site live training classes.
    提供定制化的现场直播培训课程。

  • Gopher Guides   Gopher 指南

    Customized In-person, remote, and online training classes. Training for Developers by Developers.
    定制面对面、远程及在线培训课程。为开发者打造,由开发者设计。

  • Boss Sauce Creative

    Personalized or track-based Go training for teams.
    团队个性化或分方向 Go 培训。

  • Shiju Varghese

    On-site classroom training on Go and consulting on distributed systems architectures, in India.
    在印度提供 Go 语言现场课堂培训和分布式系统架构咨询。