jgoc

command module
v1.0.26 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 8 Imported by: 0

README

JGo Web

JGoC release codecov Build Status Go Report Card PkgGoDev


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

Documentation

Overview

Copyright 2022 JaJa All rights reserved. Use of this source code is governed by a MIT-style. license that can be found in the LICENSE file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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