Giter Club home page Giter Club logo

go-scaffold's Introduction

Golang 脚手架

目录结构

.
├── cmd                   # 应用程序入口
│   ├── grpc              # grpc服务入口
│   ├── grpc_test
│   └── http              # http服务入口
├── config                # 配置文件
├── internal              # 业务代码
│   ├── constant          # 全局常数
│   ├── grpc              # grpc服务
│   │   ├── handler       # 服务实现
│   │   └── pb            # protobuf契约及自动生成的契约代码
│   ├── http              # http服务
│   │   ├── dto	          # 出入参实体
│   │   ├── handler       # 服务实现
│   │   ├── middleware    # 中间件
│   │   └── swagger       # swagger文档(自动生成)
│   ├── model             # 数据库实体
│   └── service           # 业务实现
├── pkg                   # 封装的第三方库及工具
│   ├── conf              # 配置文件
│   ├── etcd              # etcd解释器及注册机
│   ├── jwt               # jwt
│   ├── kafka             # kafka
│   ├── log               # 日志
│   ├── util              # 工具
│   ├── xgin              # gin
│   ├── xgorm             # gorm
│   ├── xgrpc             # grpc
│   ├── xmysql            # mysql driver
│   └── xredis            # redis
├── script                # 脚本文件
└── target                # 编译后生成的目标文件及配置
    ├── grpc              # grpc服务文件
    └── http              # http服务文件

补充

  1. google.golang.org/grpc 包与 github.com/coreos/etcd发生冲突时,参照:https://github.com/etcd-io/etcd/pull/11564/files

go-scaffold's People

Contributors

wwwangxc avatar

Watchers

 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.