> 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.5.2-lei-xing-jian-cha-luo-ji-chu-shi-hua.md).

# 4.5.2 类型检查逻辑 - 初始化

前文介绍了大量与类型检查相关的数据结构，这一节我们从如下两个方介绍类型检查器的初始化流程：

1. 初始化全局作用域
2. 初始化类型检查器

完成初始化之后，类型检查器才能开始正式进行类型检查工作。
