Help us shape the future of Go! Take the 2026 Go Developer Survey

docsync

command
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command docsync 校验 README 的包清单表与仓库实际状态一致。

为什么要有这个命令

README 的包表是本仓唯一的对外规模声明,历史上长期手工维护,已经漂到 「netguard 声称 ~86 行 / 纯 stdlib 叶子层」而实际是 412 行且依赖 guardx 这种程度——而 make check 完全不覆盖文档,漂移没有任何信号。

按本仓既有的门禁口径(见 architecture-policy.yaml 头注:门禁不认文档里 说过要迁,不写进机器约束的约定半年后必然回退),这张表也必须有机器校验。

判定口径

  • 生产行数:pkg/*.go 且不含 _test.go(表头已声明该口径)
  • 外部依赖:生产代码 import 的仓外模块,取 module 前两段归并
  • 本仓自身 import(github.com/yi-nology/agent-harness/...)不算外部依赖

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL