Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.
/ jgoc Public archive

JGoC provides an easier way to create Go project, model and schedule.

License

Notifications You must be signed in to change notification settings

xjustloveux/jgoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JGo Web

JGoC release codecov Build Status Go Report Card PkgGoDev License: MIT


Overview


JGoC provides an easier way to create Go project, model and schedule.

It is designed on the basis JGo and gin.

Middlewares


Sql middleware use mysql, go-mssqldb , godror and pq.

Installation


go install github.com/xjustloveux/jgoc@latest

QuickStart


create project

jgoc --name example.com/helloworld --pro

create project, model

jgoc --name example.com/helloworld --pro --mod

create project, model, service

jgoc --name example.com/helloworld --pro --mod --srv

create project, model, service, schedule

jgoc --name example.com/helloworld --pro --mod --srv --sch

create model

jgoc --name example.com/helloworld --mod

create model, service

jgoc --name example.com/helloworld --mod --srv

create schedule

jgoc --name example.com/helloworld --sch

CommandLineUsage


Flags Type Comment
--name string module name, required
--env string jgo config environment value
--pro created project framework
--mod created database model, need config/config.json or config/config.yaml file, configuration refer to configuration
--pointer columns of numeric type will be converted to pointer type when creating the model, required flag(s) "mod"
--srv created model service, required flag(s) "mod"
--ds string specify the datasource name to be created model and service, required flag(s) "mod"
--table string specify the table name to be created model and service, required flag(s) "mod"
--gorm create model and service with gorm, model default only json tag, service default jgo, required flag(s) "mod"
--sch created schedule, need config/config.json or config/config.yaml file, configuration refer to configuration
--job string specify the job name to be created schedule, required flag(s) "sch"
--help, -h help for jgoc
--version, -v version for jgoc