Categorygithub.com/phpwei/go-Gentity
modulepackage
0.0.0-20200624080411-1a1764e2203e
Repository: https://github.com/phpwei/go-gentity.git
Documentation: pkg.go.dev

# README

《一键生成Go-orm结构体模型工具》V1.01

环境要求

  • Go版本 >= 1.13
  • Go Module 模式

安装步骤

  • go mod init 创建项目
  • 项目根目录执行命令 go get -u github.com/phpwei/gentity
  • 自动加入环境变量 bin
  • go环境安装 可以参考 https://learnku.com/articles/38410

工具命令汇总

  • 【一键生成指定表】 gentity db -m 输入表名
  • 【一键生成全部表】 gentity db -m all
  • 【一键生成全部表自动生成 无需提醒】gentity db -m all -y
  • 【生成配置文件到自己的根目录下】gentity conf -c

注意事项

  • 生成的model结构体默认在根目录 app/models/ 下面
  • 数据库配置文件在根目录下 application.yaml

效果展示

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author