一、Go 程序结构 #
Go语言的中的大程序都从小的基本组件构建而来:
- 变量存储值;
- 基本类型通过数据和结构体进行聚合;
- 简单的表达式通过加和减等操作合并成大的;
- 表达式通过if、for、switch、defer等控制语句来决定执行顺序;
- 语句被组织成函数用于隔离和复用;
- 函数被组织成源文件和包;
*[不支持的块类型: notionapi.ChildPageBlock]
*[不支持的块类型: notionapi.ChildPageBlock]
*[不支持的块类型: notionapi.ChildPageBlock]
*[不支持的块类型: notionapi.ChildPageBlock]
*[不支持的块类型: notionapi.ChildPageBlock]
*[不支持的块类型: notionapi.ChildPageBlock]