GithubHelp home page GithubHelp logo

template's Introduction

基于toolbox 的demo 实例。

Golang工程化标准

  • 背景

    当越来越多的人参与团队开发中,需要结构化和工程化协同方便,统一管理,规范化。

  • 实践

项目结构

  • 项目结构

 shell
 ├── boot
 |	├─boot.go  # 配置初始化文件
 ├─ config      # 配置文件夹
 |   |	   └── config.yaml #配置
 ├─ docs				# swagger文档
 |	├── docs.go
 ├─internal   # 业务逻辑层
 |   ├─ enum 
 |	|	├── consts.go # 常量定义
 |   ├── middleware # 中间件文件
 |	|	├── auth.go # 用户认证
 |   ├── model	# 结构体文件夹定义
 |   ├── route # 路由文件夹
 |   ├── service # 服务层文件家
 |	|   ├── service_name # 服务模块名
 |	|	|  ├── demo_controller.go # 执行控制器
 ├─ .gitignore # git忽略文件
 ├─ main.go # 项目入口
 ├─ README.md
 ├─ go.sum
 └ go.mod

template's People

Contributors

senyu-up avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.