gin-gen

command module
v0.0.0-...-33f3276 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

gin-gen

介绍

use bash to generate directory for gin project 生成gin项目目录结构。

https://github.com/unionline/gin-gen.git

安装
go get github.com/unionline/gin-gen
生成项目
cd YourGOPath/src/github.com/unionline/gin-gen
go build main.go
./gin-gen new <project-name>
mv  <project-name> YourGOPath/src/
    │  ├─ config          //配置文件
    │     ├── ...
    │  ├─ internal     //Internal          
       │  ├─ controllers     //控制器层
       │     ├── ...
       │  ├─ entities        //实体
       │     ├── ...
       │  ├─ initializers    //初始化
       │     ├── ...
       │  ├─ repositories    //数据库操作层
       │     ├── ...
       │  ├─ models          //数据库ORM
       │     ├── ...
       │  ├─ services        //业务层
       │     ├── ...
       │  ├─ proto           //proto文件
       │     ├── ...
       │  ├─ routers         //路由
       │     ├── middleware  //路由中间件
       │         ├── ...
       │     ├── ...
    │  ├─ pkg           //pkg
       │  ├─ utils           //工具类
       │     ├── ...
    │  ├─ runtime           //runtime
          ├─ logs           //logs
          ├─ resource       //resource   
             ├─ logo        //logo      
             ├─ images      //images     
    │  ├─ views           //View
       │     ├── ...
    │  ├─ main.go         //入口文件

参考1:https://blog.csdn.net/XinLiangTalk/article/details/99670139

参考2:www.gitee.com/zhouxiaozhu/gin-gen

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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