← [ BACK_TO_NOTES ]

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。

从这里开始

  1. io.Reader/Writer
  2. JSON
  3. context
  4. net/http
  5. CLI 实战
  6. HTTP 实战

数据与 I/O

服务与请求范围

综合实践

继续深入

自测题

  1. 为什么实战应先标准库再框架?
  2. CLI 与 HTTP 实战共同的可测性关键是什么?
答案
  1. 先掌握边界与生命周期,框架只是人体工学层。
  2. 核心逻辑可注入(Reader/Writer 或 Handler),main 保持薄。
创建于 2026/7/11 更新于 2026/7/28
Digital Biome
Access

键盘导航

j / k / ↑ / ↓
选择对象
Enter / o
打开选择
/ 或 Ctrl+K
全站搜索
i / f / 1–4
筛选当前列表
g → h / l / p / t / a
首页 / 笔记 / 项目 / 工具 / About
r → 1–9
打开所选对象的关联
u
返回上一页
Esc
关闭浮层 / 取消命令;输入框内清空文本