README ¶ 功能 根据声名的业务错误码自动注册到错误包(github.com/xiaodulala/component-tools/tree/main/pkg/errors)中 自动生成错误码md格式文档 安装 go install github.com/xiaodulala/component-tools/tools/codegen@latest 使用 codegen -h # 注册业务码 codegen -type=int # 生成文档 codegen -type=int -doc -output ./base_code_generated.md Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files codegen.go Click to show internal directories. Click to hide internal directories.