Go 标准库与应用 MOC
标准库 I/O、JSON、context、HTTP 与 CLI/HTTP 实战导航;框架见 Web/数据访问 MOC。
#moc
#growing
#dev
#go
[!info] related notes
Go 标准库与应用 MOC
知识总览
filters:
and:
- 'file.ext == "md"'
- 'file.inFolder("z")'
- 'this.file.links.contains(file)'
- 'file.path != this.file.path'
formulas:
knowledge: 'file.asLink(title)'
properties:
formula.knowledge:
displayName: 知识
note.description:
displayName: Description
note.mastery:
displayName: Mastery
views:
- type: table
name: 知识总览
order:
- formula.knowledge
- note.description
- note.mastery
columnSize:
formula.knowledge: 280
note.description: 760
note.mastery: 56
这个概念为什么出现
语言点学完后需要可运行闭环。本图用标准库稳定抽象搭桥到 CLI/HTTP,避免一上来被框架 API 带偏。
这张地图覆盖什么
io、JSON、context、net/http、日志、资源释放与两个标准库实战 howto。Gin/GORM 等见其他 MOC。
从这里开始
数据与 I/O
服务与请求范围
综合实践
继续深入
自测题
- 为什么实战应先标准库再框架?
- CLI 与 HTTP 实战共同的可测性关键是什么?
答案
- 先掌握边界与生命周期,框架只是人体工学层。
- 核心逻辑可注入(Reader/Writer 或 Handler),main 保持薄。