qgo

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 1 Imported by: 0

README

qgo 后端脚手架

本脚手架是 易千网络工作室 使用的后端开发脚手架旨在规范后端开发流程和结构,使用 cobra 构建。

安装

使用下面的命令安装脚手架工具:

$ go install code.qnxg.cn/qgo/qgo@latest

如果遇到无法运行 qgo 命令时,请检查环境变量中是否包含 $GOPATH/bin(注意平台区别)。

使用

init

执行下面的命令初始化项目:

$ mkdir newApp && cd newApp

$ qgo init -t <template> -m <modename>

局限

  • 目前只支持两套模板

模板说明

Default

使用 Gin 开发后端的模板:

  • Gin - 后端开发框架
  • wire - 依赖注入框架
  • Gorm - 数据库映射框架

Grpc

微服务模板

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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