gormgen

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
dao
model
Code generated by gormgen.
Code generated by gormgen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL