codegen

command
v0.0.0-...-1b35c59 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 16 Imported by: 0

README

功能

  1. 根据声名的业务错误码自动注册到错误包(github.com/xiaodulala/component-tools/tree/main/pkg/errors)中
  2. 自动生成错误码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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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