> For the complete documentation index, see [llms.txt](https://gocompiler.shizhz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gocompiler.shizhz.me/golang-bian-yi-qi-lei-xing-jian-cha/4.4.41-lei-xing-shu-ju-jie-gou-jian-jie.md).

# 4.4.4-1 类型数据结构 - 简介

既然编译器要进行类型检查，那么必然就需要为各种类型定义数据结构，所有与类型相关的结构都定义在文件`$GCROOT/compile/internal/types2/type.go`中，其中有的数据结构直接与 go 的语法块相对应，有的则是编译器内部封装的结构体。该数据结构是类型检查的核心，我们多花点篇幅逐个查看。
