Skip to content
/ gboot Public

One Command build a golang project; Generate hierarchical structures such as router/service/model using gin and gorm. 一条命令生成golang项目,使用gin和gorm生成router/service/model 等分层结构

Notifications You must be signed in to change notification settings

neoean/gboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gboot

Build Go Report Card

可以用一条命令,根据数据库或者SQL 直接生成完整的golang项目,包括数据模型,dao,service,api等

使用方法:

方法一:(略有问题,建议先在gboot项目目录下使用,有好的方案再优化下)
# 先安装命令,确保~/go/bin 在PATH里
go install github.com/neoean/gboot@latest
gboot -name=PROJECT_NAME -dbtype=mysql -username=root -password=123456 -host=127.0.0.1:3306 -dbname=test

方法二:
git clone [email protected]:neoean/gboot.git
go main.go -name=PROJECT_NAME -dbtype=mysql -username=root -password=123456 -host=127.0.0.1:3306 -dbname=test

About

One Command build a golang project; Generate hierarchical structures such as router/service/model using gin and gorm. 一条命令生成golang项目,使用gin和gorm生成router/service/model 等分层结构

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published