package
1.0.0
Repository: https://github.com/go-app-mods/converter.git
Documentation: pkg.go.dev

# README

使用方法

  1. 直接运行
go run cli.go  --file model.go --dsn root:root@tcp\(localhost:3306\)/test?charset=utf8 --table user
  1. 编译运行
go build -o t2t.bin cli.go
./t2t.bin -file model.go -dsn xxx -table user
  1. 参数说明
-dsn            string 数据库dsn配置
-enableJsonTag  bool 是否添加json的tag
-file           string 保存路径
-packageName    string 包名
-prefix         string 表前缀
-realNameMethod string 结构体对应的表名
-table          string 要迁移的表
-tagKey         string tag的key