gin-skeleton

command module
v0.0.0-...-e790d6b Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

简介

go gin脚手架, 一些简单的封装

安装

# 拉取依赖
go mod tidy

# 修改相关配置
cat .env.example > .env

启动

go run main.go

# or

go build main.go && ./main

目录说明

gin-skeleton
├─app                  
│  ├─api        接口
│  ├─cron       定时任务
│  ├─form       接收表单数据
│  ├─library    包
│  ├─middleware 中间件
│  ├─models     模型:自定义模型不进行数据操作
│  ├─servers    服务:封装curd具体操作
│  
├─config        项目配置文件
├─router  
│  ├─router.go  路由定义
├─main.go       入口

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
api

Jump to

Keyboard shortcuts

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