跳到主要内容
学院
初级 从零到精通 代码街区

Go

从第一行代码到生产级服务:简单、快速、并发。

Go is the language behind Docker, Kubernetes and countless cloud services. This track takes you from your very first line of code to production services: types, collections, interfaces, generics, goroutines and channels, HTTP APIs, PostgreSQL, testing and deployment.

Every lesson is short, practical and checked with quizzes, so you learn by doing.

课时
57
时长
7 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Write clear, idiomatic Go with structs, interfaces and generics
  • Handle errors the way experienced Go developers do
  • Run work concurrently with goroutines, channels and context
  • Build a JSON REST API backed by PostgreSQL
  • Test, profile and ship a Go service to production

学习旅程

  1. 1
    第 1 单元

    Getting started

    What Go is, your first program, and the tools you will use every day.

    0 / 4
  2. 2
    第 2 单元

    Variables and types

    Store values, choose the right type, and work with text correctly.

    0 / 5
  3. 3
    第 3 单元

    Control flow

    Make decisions and repeat work with if, for, switch and defer.

    0 / 5
  4. 4
    第 4 单元

    Functions

    Package logic into functions, return errors, and use closures.

    0 / 4
  5. 5
    第 5 单元

    Arrays, slices and maps

    Go's everyday collections and the traps that catch beginners.

    0 / 4
  6. 6
    第 6 单元

    Structs, methods and interfaces

    Model your own data and write code that works with any type that fits.

    0 / 5
  7. 7
    第 7 单元

    Errors like a pro

    Wrap, inspect and design errors so failures explain themselves.

    0 / 4
  8. 8
    第 8 单元

    Generics

    Write one function or type that works for many types, safely.

    0 / 4
  9. 9
    第 9 单元

    Concurrency

    Goroutines, channels, select, mutexes and context: Go's superpower.

    0 / 6
  10. 10
    第 10 单元

    Web services

    Serve HTTP, speak JSON, add middleware and build a REST API.

    0 / 5
  11. 11
    第 11 单元

    Databases

    Talk to PostgreSQL from Go: queries, transactions and safety.

    0 / 4
  12. 12
    第 12 单元

    Production Go

    Testing, benchmarks, project layout, profiling and shipping.

    0 / 7

快速导航