文章目录 Go 程序是怎样跑起来的 引入 编译链接 编译过程 词法分析 语法分析 语义分析 中间代码生成 目标代码生成与优化 链接过程 程序启动 **GoRoot 和 GoPath** **Go 命令详解** **go build** **go install** **go run** **总结** Go 程序是怎样跑起来的 引入 我们从一个 helloworld 的例子开始 package main import "fmt" func main() { fmt.Println("hello world") } 用 vim 要打