to-go-struct-intellij-plugin icon indicating copy to clipboard operation
to-go-struct-intellij-plugin copied to clipboard

希望能增加对mysql语句中COMMENT关键字的识别

Open TerryLiu opened this issue 2 years ago • 2 comments

希望能提取出mysql语句中的COMMENT关键字内容,作为一个参数能够赋值到tag模板中. 比如mysql语句片段为 d1_bp DECIMAL(7,4) NOT NULL DEFAULT 0.0 COMMENT '涨跌基点数', 能提取出"涨跌基点数"作为%s2或其它通配符, 插入到tag模板中 json:"%s" stbl:"%s" desc:"%s2" 最终生成的结构体tag为 json:"d1_bp" stbl:"d1_bp" desc:"涨跌基点数"

TerryLiu avatar Aug 04 '22 06:08 TerryLiu

Supported with https://github.com/liuhao2050/to-go-struct-intellij-plugin/commit/087e7ab4d8ae24eab35137af91e9c408dcd4afa1

liuhao2050 avatar Oct 17 '22 06:10 liuhao2050

Supported with 087e7ab

赞👍

TerryLiu avatar Oct 17 '22 06:10 TerryLiu