Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Commit

Permalink
tablename 不使用指针方法
Browse files Browse the repository at this point in the history
  • Loading branch information
axiaoxin committed Sep 23, 2020
1 parent 4e3a700 commit 4b43893
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Forked from: <https://github.com/jiazhoulvke/table2struct>

- 支持 MySQL 8.0
- 支持 Struct 中的 JSON tag 的命名风格设置
- TableName 使用指针方法
- 注释符号后面添加空格
- 修复 db 中存在视图时无法生成代码的问题
- 修复存在 enum 类型的字段无法生成代码的问题
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ type %s struct {
}
// TableName %s
func (t *%s) TableName() string {
func (t %s) TableName() string {
return "%s"
}`
)
Expand Down

0 comments on commit 4b43893

Please sign in to comment.