安装最新版本的 Go

安装最新版本的 Go。关于下载和安装 Go 编译器、工具和库的说明, 请查阅安装文档。

Go Gopher 骑着摩托车

精选教程

刚接触 Go,不知从何开始?

  • Documentation

    Everything there is to know about Go. Get started on a new project or brush up for your existing Go code.

  • Tour of 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 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.

引导式学习路径

已经掌握基础知识,想深入学习?

  • Web Dev

    Go Web Examples provides easy to understand code snippets on how to use Go for web development.

  • 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.

  • New to coding?

    Get started with this introductory course covering basic programming principles and Go fundamentals.

教程

  • 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.

  • 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.

  • Developing a web service

    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 程序探索

  • Ardan Labs

    Offering customized on-site live training classes.

  • Gopher Guides

    Customized In-person, remote, and online training classes. Training for Developers by Developers.

  • Boss Sauce Creative

    Personalized or track-based Go training for teams.

  • Shiju Varghese

    On-site classroom training on Go and consulting on distributed systems architectures, in India.