Skip to content

一个golang项目示例(a sample of golang project)

License

Notifications You must be signed in to change notification settings

wahello/gin-wire-plate

 
 

Repository files navigation

通过一个完整的项目的示例,从项目的结构、分层思想、依赖注入、错误处理、单元测试、服务治理、框架选择等方面介绍Go语言项目的最佳实践经验. 项目分为products、details、ratings、reviews四个微服务,依赖关系如下.

dependency

准备

安装docker,go,jsonnet

快速开始

下载项目

    git clone https://github.co/wahello/gin-wire-plate.git
    cd go-project-sample
    git submodule init
    git submodule update
    make docker-compose

截图

Grafana Dashboard,可以自动生成!

dashboard

dashboard1

Prometheus Alert 监控告警,自动生成!

alert

alert

调用链跟踪

jaeger

jaeger

About

一个golang项目示例(a sample of golang project)

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 69.6%
  • Jsonnet 18.9%
  • Shell 6.2%
  • PLpgSQL 2.9%
  • Makefile 1.9%
  • Dockerfile 0.5%