app-template

command module
v0.0.0-...-479da69 Latest Latest
Warning

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

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

README

App-Template

build status CodeQL Go Report Card

项目说明
简单的整合了一套(个人认为)较为清爽的项目结构。该项目结构支持单项目多应用方式,打包的时候all in one,通过
sub-command的方式分别启动。不同应用通过注入对应启动命令,在调用的时候,指定服务/功能即可。
  • 文件目录
.
├── Dockerfile
├── LICENSE
├── Makefile
├── README.md
├── cmd
│   ├── grpcserver.go
│   ├── httpserver.go
│   ├── root.go
│   └── version.go
├── documents
│   ├── demo_2
│   ├── grpcserver
│   └── httpserver
├── go.mod
├── go.sum
├── logs
│   └── running.log
├── main.go
├── pkg
│   ├── app
│   ├── common
│   ├── constants
│   ├── lib
│   └── utils
└── static
    └── certifications
安装
# 1.下载
git clone https://github.com/keepchen/app-template.git

# 2.安装依赖
go mod tidy

# 3.启动服务
go run main.go httpserver -c pkg/app/httpserver/config/config.sample.toml  
服务说明

1.httpserver

httpserver是...

README.md

  • 调用命令
# 未编译时
go run main.go httpserver -c path/to/your/config.toml

# 编译后
app-template httpserver -c path/to/your/config.toml 

2.grpcserver

grpcserver是...

README.md

  • 调用命令
# 未编译时
go run main.go grpcserver -c path/to/your/config.toml

# 编译后
app-template grpcserver -c path/to/your/config.toml 

3.demo_2

demo_2是...

README.md

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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