Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.

This document provides a high-level introduction to the Go repository structure, its major architectural components, and the relationships between core systems. This overview covers the Go language specification, runtime, compiler, build system, and standard library organization.

For detailed information about specific subsystems, see:

  • Go Runtime details: Go Runtime
  • Compiler architecture: Go Compiler
  • Build and development tools: Build System
  • Standard library packages: Standard Library

Go 语言特性

  • 自动垃圾回收
  • 更丰富的内置类型
  • 函数多返回值
  • 错误处理
  • 匿名函数和闭包
  • 类型和接口
  • 并发编程
  • 反射
  • 语言交互性
package main
 
import "fmt"
 
func main() {
    fmt.Println("Hello, World!")
}

Go Runtime

Go Compiler

Build System

Standard Library