command
module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jun 23, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gormgen
This code is fork from micro_web_service and has been revised.
How to use it
go run main.go
gormgen工具核心思路
主流程:
1. 解析各种关键性的参数
2. 读取config.yaml配置文件,获取表信息
3. 逐个处理表信息
1. 读取数据库中的表结构
2. 根据表结构生成对应的Go语言结构体,放在/model路径下
3. 生成CRUD相关的Dao结构代码,放在/dao路径下
4. 执行go fmt格式化代码
Example
Check example code example
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
|
model
Code generated by gormgen.
|
Code generated by gormgen. |
|
|
Click to show internal directories.
Click to hide internal directories.